Sounds like something you could write yourself with a custom-elements. Yay extensible web :)
On Fri, Apr 17, 2015 at 1:32 PM, Matthew Robb <matthewwr...@gmail.com> wrote: > I like the idea of this. It reminds me of polymer's core-ajax component. > On Apr 16, 2015 11:39 PM, "Glen Huang" <curvedm...@gmail.com> wrote: > >> Inspired by HTML imports, can we add JSON imports too? >> >> ```html >> <script type="application/json" src="foo.json" id="foo"></script> >> <script type="application/json" id="bar"> >> { "foo": "bar" } >> </script> >> ``` >> >> ```js >> document.getElementById("foo").json // or whatever >> document.getElementById("bar").json >> ``` >> >>