Skip to content

rel="preload" issue #3

@domidomi

Description

@domidomi

I've implemented loadCSS (https://github.com/filamentgroup/loadCSS/blob/master/README.md) on my website.
Your script caches only rel=stylesheets, but I've got:
<link href="/assets/style/app.css?t=1520512164273" as="style" type="text/css" rel="preload" onload="this.onload=null;this.rel='stylesheet'">
I've slightly changed your script and then it works (in Busted function, index.js file, line 45.)
var protocolRegEx = /^http(s)?/, elements = $('script[src], link[rel=stylesheet][href], link[rel=preload][as=style][href]');

Could you please implement it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions