Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why are javascript comments downloaded to the browser?

Using aspnet 3.5.

I have some javascript functions in my aspx file.

Why do the javascript comments get passed to the browser? It makes the download file unnecessarily large.

like image 790
Lill Lansey Avatar asked Mar 21 '26 18:03

Lill Lansey


1 Answers

Javascript is evaluated on the client, so it downloads all the source (including the comments).

like image 111
Gavin H Avatar answered Mar 24 '26 10:03

Gavin H