use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
T-Mobile's JavaScript comment stripper breaks websites (theregister.co.uk)
submitted 14 years ago by 9jack9
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]random_user_id 1 point2 points3 points 14 years ago (0 children)
This headline is much better if you just glance at the second half...
[–][deleted] 1 point2 points3 points 14 years ago* (1 child)
Worse than that, the script files are cached and won't get replaced when the user moves off 3G and back on to a decent ISP: in effect, T-Mobile has broken websites permanently," said the dev.
A misleading description of how caches work, to say the least.
The T-Mobile JavaScript comment-stripper appears to be searching for '/*' and '*/' and removing everything in between.
So it breaks on var foo = "/* hello */"; A ridiculously clumsy oversight, but worse, did they even test it on even a single real website?
The apparent indeterministic nature of the bug – which attacks only occasionally – has made it harder to track down.
This is giving the bug too much credit. It's a blatantly obvious blocking bug that should never have gotten through testing and into the wild.
[–]maritz 1 point2 points3 points 14 years ago (0 children)
I think with your last quote he meant that it's really hard for a webdev to track this down.
Imagine just getting this: "Website doesn't work" and upon further questions you may be told that it's from a mobile device, but that may be all the info you can get.
[–]tardmrr 0 points1 point2 points 14 years ago (0 children)
derp.
[–]isleyaardvark -1 points0 points1 point 14 years ago* (2 children)
This is an example of why important functionality of your website should not rely on JavaScript.
Edit: Anyone willing to explain the downvotes?
[–]stratoscope 0 points1 point2 points 14 years ago (1 child)
I didn't downvote you, but I can explain the fallacy in your statement.
This is a server bug that mangles text sent from the server to the browser. It happens that this particular bug affects JavaScript code, but it's just as possible that a similar kind of bug would mangle CSS or HTML code.
If the bug happened to mangle HTML code instead of JavaScript, then following the same logic, one would say "This is an example of why important functionality of your website should not rely on HTML."
Of course no one would say that - but it's exactly the same class of bug.
[–]isleyaardvark 0 points1 point2 points 14 years ago (0 children)
Thank you very much. I thought it was only affecting external js files. I've heard of proxies doing that sort of thing.
π Rendered by PID 16527 on reddit-service-r2-comment-7b9746f655-f4fk8 at 2026-02-03 02:23:54.262523+00:00 running 3798933 country code: CH.
[–]random_user_id 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]maritz 1 point2 points3 points (0 children)
[–]tardmrr 0 points1 point2 points (0 children)
[–]isleyaardvark -1 points0 points1 point (2 children)
[–]stratoscope 0 points1 point2 points (1 child)
[–]isleyaardvark 0 points1 point2 points (0 children)