Modernizr: Rel Prefetch Support?

Created on 16 Apr 2020  路  12Comments  路  Source: Modernizr/Modernizr

Any chance we could get a detect for rel prefetch? It'd be super-helpful for WebKit browsers. There's a bug out for it now, but no movement yet.

detect needed

Most helpful comment

馃憢 I would like to take a crack at this one.

All 12 comments

I wonder if there's any easy way to test that feature. 馃

Maybe there is some similar test in Modenrizr already that can be used as a blueprint?

I'm going to look at it a little bit since I've got a bit more time on my hands and this strikes me as a funny problem to solve (also: potentially impossible?)

I wouldn't have thought of that, which is funny, because I replied to that other issue. I don't know that I looked after posting the pointer, though. Thanks Patrick

Yeah, looks like this might work.

So, feeling ready to do a PR? :-)

馃憢 I would like to take a crack at this one.

Go for it!

PR submitted!
If desired, I could also add detection for rel=preload in the same directory in another PR

Is it ok to do browser detection for the IE11 edge case pointed out on the PR?
https://github.com/Modernizr/Modernizr/pull/2610#issuecomment-709717161

At least a note / warning should be added to the docs of the feature detect. Not sure if detecting IE11 specifically should be done....

Was this page helpful?
0 / 5 - 0 ratings

Related issues

evanrmurphy picture evanrmurphy  路  7Comments

claudchan picture claudchan  路  7Comments

BasJan81 picture BasJan81  路  9Comments

YounesKeraressi picture YounesKeraressi  路  8Comments

acschwartz picture acschwartz  路  6Comments