Perfomance is very slow when a HTML comment is inside a JavaScript block
See original GitHub issueI’ve mistakenly placed a HTML comment inside a JavaScript block that caused the time to load a page to increase from 200-300 ms to 6-7 seconds. Besides this, that block contained a quiet large JSON array, but removing that comment
did the perf fix.
Obviously the comment shouldn’t have been there, but I still think it is an issue if this causes such a drop in the load time.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Do spaces/comments slow Javascript down?
Whitespaces and comments increase the size of the JavaScript file, which slows down the actual downloading of the file from the server - ......
Read more >Do HTML Comments Affect Performance? - Maker's Aid
Leaving comments in your website's HTML markup slows loading because web browsers have more code to parse. This results in slower selection of ......
Read more >Do HTML Comments Affect Performance - CONQUER CODING
HTML comments are perfectly acceptable to use in almost all circumstances. On the other hand, too much of something can have unintended and...
Read more >Import JavaScript Into HTML: This Mistake Slows Down ...
The import of external JavaScript files slows down the loading of your website because they interrupt the parsing process in the browser. The ......
Read more >Blogger Comment JavaScript Causing Slow Page Loading ...
I am writing to bring attention to an issue I am facing with the Blogger Comment JavaScript code. I have noticed that the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
By default, generation of statistics is disabled, because it slightly reduces performance.
Unfortunately, now in ASP.NET extensions is missing the ability to enable generation of statistics (logger always gets its equal to null), but in next release I will add this feature.
Many thanks!
2017-03-08 18:05 GMT+02:00 Andrey Taritsyn notifications@github.com: