> What about native JSON loading?
How would this be different from XHR + JSON.parse() sugar?
Are you proposing loading the JSON from the server as though it were a
module?
FWIW, most of my JSON-loading use cases are post-page-load, they are of the
"fetch some data from the server based on user input" variety.
In a very very very small number of cases (session state mostly) I also
will load data at the same time as page load; for these cases I currently
use SCRIPT tags and code ~ like this on the server
print("Content-type: application/x-javascript\n")
/* do stuff */
print "var o = " + uneval(o);
Wes
--
Wesley W. Garland
Director, Product Development
PageMail, Inc.
+1 613 542 2787 x 102
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss