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

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -