On 7/22/14, 7:07 PM, Ben Maurer wrote:
var myfetch = window.fetch('my.css', {'fetch-as': 'stylesheet'}); myfetch.then(function(resp) { document.body.appendChild(resp.body.asStyleSheet()); });Boris, Will -- would this setup address the concerns you have about the problems websites that use XHR to load resources encounter?
It would. So would some API on top of fetch (as Domenic and Ian propose). -Boris