performance - Javascript code freezes page for a while -- how do I prevent this? -


i have cpu-intensive script which, when run, freezes whole page while, can't scrolled or clicked, etc. gladly sacrifice performance more smooth experience.

also, in case, script part of google chrome extension.

is possible make script freezes page run in background, without interrupting user interaction page?

maybe web workers of interest.

it best put cpu-intensive task worker, job in background. solution cut code pieces, load them asynchronously , execute them 1 after another.

http://blog.typekit.com/2011/05/25/loading-typekit-fonts-asynchronously/


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -