Why Google prepend while(1); to their JSON responses
stackoverflow.com
stackoverflow.com
Like, you have good information, but you crammed it in between so much hyperbole, exaggeration.
[1] How would you implement third-party login and similar useful things without it? Your page's script could pass the neccessary cookies explicitly to the third party script, or you could go around the backend and have server A tell server B who a session belongs to.
…Does that grind my browser to a halt?
Why not just throw an error or something?
Nobody wants it but unless it's completely broken most don't care enough to do something about it. Which is why this JSON trick is done in the first place.
Given this is about Google: YouTube has the same bug in its comment text fields for at least 5 years, in rare cases submitting a comment only results in the error "n is undefined", it can't handle the browser's back button, sometimes links don't work until I scroll the site a bit, the new "preview video on hover" feature doesn't reliably react to mouse events and its animation swallows mouse clicks, and that's just the few things I remember off the top of my head.
(where script is the javascript variable that corresponds to the javascript script tag, possibly initialized with script = document.createElement('script'))