I am building non-jQuery responsive image slider based on CSS3 transitions.  The structure is simple: a viewport and inside relatively positioned UL with left floated LIs.  I am facing a problem in such situation:   User clicks "prev" arrow...
I need to be able to benchmark a particular build of a webkit-based browser and am measuring the length of time it takes to do certain stuff like DOM manipulation, memory limits etc.  I have a test below which records the length of time it takes to s...
Say, I've got an HTML file that I want to process using Javascript. For example:   Add some DOM elements, like span or div wrappers. Change the document styling a bit, like base font size, line-height, etc. Use a hyphentor to add ­ entiti...
I've read on SO and elsewhere that re-paints and re-flows are expensive for the browser to perform.   I'm curious about CSS/JS alternatives to re-paint/display:none and re-flow/visibility:hidden that aren't as computationally demanding fo...
I have a music player with an animated bar that displays the current position in the song. It is rendered with requestAnimationFrame and works by changing the width style of the div to X%, where X is the percentage of time through the current song....
Let's say I need to apply bunch of css rules (around 50) like as following code:   var s = document.createElement('style');      s.type = 'text/css';      s = document.getElementsByTagName('head').item(0).appendChild(s);...
I have two html tables that contains all kind of elements (span, input, select,...) and I want to force the rows of those tables to have the same height. Unfortunately, setting the attribute 'height' on tr or tddoesn't work (the row is hi...
I have an element with following css style:     #element:after { content: attr(data-percent); }  I'm trying to change data-percent attribute with JQuery like this $('#element').data('percent', '50%');  Attribute changes, I...
requestAnimationFrame seems of less and less utility when it comes to large-scale DOM manipulations.   I have an SPA application that ajaxes HTML content during site navigation, and this causes the main element within the body to be replaced with a d...
I'm working on a webapp that populates a page with a large number of images.  It is similar in layout to an image search, in that the user chooses some settings at the top of the page and the page is instantly filled with images that correspond t...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.