Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For me it still takes one second in script only but not because of heavy scripts but because of forced layouts[0] for each page load.

In your code it’s mostly adding DOM children (invalidating the layout) and getting an offset later on (thus forcing the layout) for ca 25 times. The page should be much more responsive.

[0] https://developers.google.com/chrome-developer-tools/docs/de...



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

Search: