jquery Programming Glossary: cpu
FancyBox displaying contents of a DIV as type iFrame http://stackoverflow.com/questions/11678956/fancybox-displaying-contents-of-a-div-as-type-iframe
window.scroll function freezes firefox http://stackoverflow.com/questions/12428754/window-scroll-function-freezes-firefox 'html body' .scrollTop scrollmem I also noticed that the CPU goes up to 100 and I can't seem to figure out why. The problem..
jQuery split long ul list in smaller lists http://stackoverflow.com/questions/1644668/jquery-split-long-ul-list-in-smaller-lists Any idea how to use jQuery in a way that uses minimal CPU jquery html split html lists share improve this question..
How to tell if browser/tab is active [duplicate] http://stackoverflow.com/questions/1760250/how-to-tell-if-browser-tab-is-active purpose if the user isn't looking at it and is potentially CPU intensive so I don't want to just waste cycles in the background...
How to implement a chat room using Jquery/PHP? http://stackoverflow.com/questions/4174521/how-to-implement-a-chat-room-using-jquery-php to the client sleep 1 a little break to unload the server CPU body html The frontend script index.html creates a comet javascript.. has been modified usleep 10000 sleep 10ms to unload the CPU clearstatcache currentmodif filemtime filename return a json..
jQuery animate() and browser performance http://stackoverflow.com/questions/459224/jquery-animate-and-browser-performance and Firefox3. If I have both browsers running the page my CPU is screaming at about 95 usage. I'm using jQuery 1.3. Both animations.. Flash but even watching shows on Hulu.com doesn't spike my CPU like this. Thoughts jquery performance animation cpu usage..
setTimeout speeds up with multiple tabs http://stackoverflow.com/questions/6112671/settimeout-speeds-up-with-multiple-tabs a setInterval or setTimeout loop. In order to preserve CPU resources browsers that support requestAnimationFrame will not..
jQuery/Javascript - How to wait for manipulated DOM to update before proceeding with function http://stackoverflow.com/questions/7342084/jquery-javascript-how-to-wait-for-manipulated-dom-to-update-before-proceeding a simple div to say Processing... before executing a CPU intensive script it takes 3 12 seconds to run no AJAX then update.. jQuery and Javascript implementations with a 5 second high CPU function. The code is easy to follow. When you click either..
Why doesn't jQuery use requestAnimationFrame? http://stackoverflow.com/questions/7999680/why-doesnt-jquery-use-requestanimationframe were that animations didn't run browsers try to reduce CPU load when window didn't have focus which is OK if the window..
event delegation vs direct binding when adding complex elements to a page http://stackoverflow.com/questions/8827430/event-delegation-vs-direct-binding-when-adding-complex-elements-to-a-page share improve this question You will create less CPU overhead in binding the events using root element .on event.. bind takes time... . That being said you will incur more CPU overhead when the actual events occur as they have to bubble.. up the DOM to the root element. Sort story delegate saves CPU when binding event handlers bind saves CPU when events trigger..
How do I hide the tooltip on hover from the title tag when using FancyBox 2.0? http://stackoverflow.com/questions/9610883/how-do-i-hide-the-tooltip-on-hover-from-the-title-tag-when-using-fancybox-2-0 the value of the title attribute you only would be adding CPU load instead . This is also useful for long or complex captions..
FancyBox displaying contents of a DIV as type iFrame http://stackoverflow.com/questions/11678956/fancybox-displaying-contents-of-a-div-as-type-iframe
window.scroll function freezes firefox http://stackoverflow.com/questions/12428754/window-scroll-function-freezes-firefox var scrollmem 'body' .scrollTop window.location.hash hash 'html body' .scrollTop scrollmem I also noticed that the CPU goes up to 100 and I can't seem to figure out why. The problem is in the third section of code beginning with else if scroll..
jQuery split long ul list in smaller lists http://stackoverflow.com/questions/1644668/jquery-split-long-ul-list-in-smaller-lists ul li nth child 20n .after ul ul but that's not the case. Any idea how to use jQuery in a way that uses minimal CPU jquery html split html lists share improve this question I would create document fragments with your removed li s and..
How to tell if browser/tab is active [duplicate] http://stackoverflow.com/questions/1760250/how-to-tell-if-browser-tab-is-active the browser or switched to another tab. It serves no purpose if the user isn't looking at it and is potentially CPU intensive so I don't want to just waste cycles in the background. Does anyone know how to tell this in JavaScript Note I..
How to implement a chat room using Jquery/PHP? http://stackoverflow.com/questions/4174521/how-to-implement-a-chat-room-using-jquery-php .' ' echo ' script ' flush used to send the echoed data to the client sleep 1 a little break to unload the server CPU body html The frontend script index.html creates a comet javascript object that will connect the backend script to the time.. filename while currentmodif lastmodif check if the data file has been modified usleep 10000 sleep 10ms to unload the CPU clearstatcache currentmodif filemtime filename return a json array response array response 'msg' file_get_contents filename..
jQuery animate() and browser performance http://stackoverflow.com/questions/459224/jquery-animate-and-browser-performance to any single browser either it's the same way on Safari3 and Firefox3. If I have both browsers running the page my CPU is screaming at about 95 usage. I'm using jQuery 1.3. Both animations are happening concurrently. There's no Flash on the.. to normal usage. I'm hoping I don't have to resort to Flash but even watching shows on Hulu.com doesn't spike my CPU like this. Thoughts jquery performance animation cpu usage share improve this question I think the way jQuery animate..
setTimeout speeds up with multiple tabs http://stackoverflow.com/questions/6112671/settimeout-speeds-up-with-multiple-tabs requestAnimationFrame you should never queue animations using a setInterval or setTimeout loop. In order to preserve CPU resources browsers that support requestAnimationFrame will not update animations when the window tab is not displayed. If..
jQuery/Javascript - How to wait for manipulated DOM to update before proceeding with function http://stackoverflow.com/questions/7342084/jquery-javascript-how-to-wait-for-manipulated-dom-to-update-before-proceeding proceeding with function What I'm trying to do is to update a simple div to say Processing... before executing a CPU intensive script it takes 3 12 seconds to run no AJAX then update the div to say Finished when done. What I'm seeing is.. using the sample code I prepared below that shows both the jQuery and Javascript implementations with a 5 second high CPU function. The code is easy to follow. When you click either the button or the link you never see Processing... DOCTYPE html..
Why doesn't jQuery use requestAnimationFrame? http://stackoverflow.com/questions/7999680/why-doesnt-jquery-use-requestanimationframe requestionAnimationFrame after some time. To summarize problems were that animations didn't run browsers try to reduce CPU load when window didn't have focus which is OK if the window is hidden but not if it is visible just out of the focus. Furthermore..
event delegation vs direct binding when adding complex elements to a page http://stackoverflow.com/questions/8827430/event-delegation-vs-direct-binding-when-adding-complex-elements-to-a-page response. javascript jquery javascript events event delegation share improve this question You will create less CPU overhead in binding the events using root element .on event selector since you will be binding to a single root element.. of potentially many more single descendant elements each bind takes time... . That being said you will incur more CPU overhead when the actual events occur as they have to bubble up the DOM to the root element. Sort story delegate saves CPU.. overhead when the actual events occur as they have to bubble up the DOM to the root element. Sort story delegate saves CPU when binding event handlers bind saves CPU when events trigger e.g. a user clicks something . So it's up to you to decide..
How do I hide the tooltip on hover from the title tag when using FancyBox 2.0? http://stackoverflow.com/questions/9610883/how-do-i-hide-the-tooltip-on-hover-from-the-title-tag-when-using-fancybox-2-0 the extra javascript of adding or removing back and forth the value of the title attribute you only would be adding CPU load instead . This is also useful for long or complex captions that include links as in the example above. Then your fancybox..
|