News for hackers. Stuff that matters.
Re:Why does Google append while(1); in front of their JSON r... by patorjk on Monday February 04, 2013 @08:23PM (#5168439)
If you look at the gmail ajax calls, you'll also see they sometimes put a number in front of their data. Example:

3

[1, 2, 3, 0]

If you execute that in your JS console, it'll return undefined, which threw me for a loop a couple days ago when I saw it. I ended up having it ask on StackOverflow too and it's because JavaScript will interpret it as a property look up on that number object (it will evaluate to 3[0], which evaluates to undefined).

Re:Why does Google append while(1); in front of their JSON r... by Hello71 on Monday February 04, 2013 @09:51PM (#5168740)
Something comma operator something.