Storing Javascript in comment tags and later eval'ing it
stevesouders.com
stevesouders.com
For example, there are ISPs (T-Mobile UK, I'm looking at you) that strip off any comments from HTML, as a compression measure. Now I don't think that's a good idea but it is a very widespread practice at 3G/GPRS ISPs and definitely breaks this "code in comments" thing, especially since this whole thing was designed with mobile devices in the mind.
I know O2 in the UK does something similar but as I'm not an O2 customer I can't check it.
If something goes wrong it's probably fixable / avoidable. This kind of extreme tuning may not for everyone but a 100msec saved is a happier user.
It's not the volts, it's the amps that kill you. So to speak.
After spending years telling us not to use eval() to execute raw JSON, now we are suppose to eval() comments? As noted with JSON, theoretically it can be used safely, but it is a wide open window of vulnerability for people "just trying to get it done", i.e. 97% of the web sites out there.
http://en.wikipedia.org/wiki/JSON#Security_issues
"The eval technique is subject to security vulnerabilities if the data and the entire JavaScript environment is not within the control of a single trusted source. If the data is itself not trusted, for example, it may be subject to malicious JavaScript code injection attacks; unless some additional means is used to validate the data first."
(My emphasis on entire JavaScript environment.)
http://blog.sproutcore.com/post/272853740/cut-your-javascrip...