spfjs icon indicating copy to clipboard operation
spfjs copied to clipboard

Add configurable option make CSS loading blocking.

Open DavidCPhillips opened this issue 10 years ago • 1 comments

Currently CSS loading isn't blocking to SPF response processing as support is a bit iffy. Desktop support is decent, but mobile is a bit less thorough. It makes sense to be safer by default, but for sites with more CSS variation, we should allow blocking as an option.

Desktop support: Chrome 19, Safari 6, Firefox 9, Opera and IE 5.5 are supported.

Mobile: http://pie.gd/test/script-link-events/

DavidCPhillips avatar Oct 06 '14 00:10 DavidCPhillips

This one is tricky, since a unsupported browser will not fail gracefully as-is if we enable blocking on CSS loading.

One way to work around this would be to have a resource loading timeout after which processing is continued. If we implement this either with or without the timeout, we should be sure to indicate that using the option is "advanced" and subject to either risk or increase developer responsibility.

I think prefixing the config value with advanced-, providing no default value (just like we handle experimental-), and documenting the caveats would be important.

nicksay avatar Oct 06 '14 00:10 nicksay