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

> You have 2008 script tags on that page. I know why but you could have at least had them remove themselves from the DOM after they were done adding their content.

Unless I've missed something I don't think it works like that. It is just a html document, it comes as is. If you modify the dom the source stays the same?

Also, the html parser does a wonderful job ignoring things like comments and display:none nodes / script nodes. It just doesn't do anything with them. After the innerHTML is modified there is nothing further to do with each script. It is just ignored.

I've tried things like adding a 5 mb comment to the end of a page to see the behavior.



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

Search: