Possible Duplicate:
Why have “while(1);” in XmlHttpRequest response?
What does while(1) in Gmail do
I've recently stumbled upon the practice of prepending the AJAX-returned data with while (1==1) {}
to offer some greater security against CSRF attacks, but I fail to see how that code can be useful. Could someone explain, please?