Re: Native JSON loading (was: system module loader)

2012-03-15 Thread Gray Zhang
/otakustay From: Wes Garland Sent: Friday, March 09, 2012 1:42 AM To: David Bruant Cc: es-discuss Subject: Re: Native JSON loading (was: system module loader) What about native JSON loading? How would this be different from XHR + JSON.parse() sugar? Are you proposing loading the JSON from

Native JSON loading (was: system module loader)

2012-03-08 Thread David Bruant
Le 08/03/2012 18:27, Mike Samuel a écrit : http://wiki.ecmascript.org/doku.php?id=harmony:module_loaders mentions a system module loader. Has the behavior of the system module loader been speced at all? If not, would it be worthwhile specifying that when it loads an http or https URL, it does

Re: Native JSON loading (was: system module loader)

2012-03-08 Thread Wes Garland
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