Hacker News new | past | comments | ask | show | jobs | submit login

How do you deal with the time it takes to parse a large Javascript file? Past 500KB or so it can take several seconds.



Are you minifying your javascript?

500KB is pretty huge. Does every user need that? Perhaps you can use a smaller bootstrap script to pull down only what's needed when it's needed.


Sure -- it's basically half of YUI. Unminified it's 2.2MB. I've found that the time it takes to parse and load (not download) the javascript can be significant. I get away with showing content quickly and loading scripts in the background while the user is reading.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: