@deewinc What type of hints are you adding? No need to randomly select a MIME type- the plugin will automatically figure that out for you. If you’re adding a JS script, it looks for the “.js” filename and adds the “script” attribute to the “as” MIME type, and so on for other file types.
Images should be of the MIME type “image”, CSS should be “style”. If you aren’t sure which MIME type to use, I would just leave that option blank.
Hello
That surely works.
The only challenge is in determining the “AS” attribute as the plugin doesn’t allow you to leave it blank.
Despite preload working for fonts, the following issues show up
(link for resource) was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate as value and it is preloaded intentionally.
Is that an error or it’s okay? I notice a slight delay in loading of the fonts styling due to the above reason.
-
This reply was modified 5 years, 3 months ago by
deewinc.
-
This reply was modified 5 years, 3 months ago by
deewinc.
@deewinc The plugin should be allowing you to leave the “as” attribute blank, but there is the automatic MIME type determination. It is better to have it filled with the appropriate MIME type, but it usually isn’t critical.
And if you get that notice in the console, that basically means that the page didn’t really need to preload that specific resource- so you can remove that preload hint.
Actually, it’s telling me that it’s a must to select “AS” attribute. The MIME type leaving it blank works but not without selecting AS attribute.
@deewinc what is the resource URL you are using? The as attribute is mandatory for preload hints only.