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
Post a Comment