jantimon / jantimon/resource-hints-webpack-plugin

Needs `as` attribute

Open
#6 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
100
Forks
12
PR merge metrics
No merged PRs in 30d

Description

See here: https://www.smashingmagazine.com/2016/02/preload-what-is-it-good-for/#loading-of-late-discovered-resources
If the `as` attribute is omitted from the preload, it has lower priority or isn't even used at all (Chrome shows: `was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it wasn't preloaded for nothing.`

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue reports that generated preload hints omit the `as` attribute and links to a reference explaining the impact. Start by tracing how resource hints are generated in this webpack plugin; done means emitted preload markup includes the appropriate `as` value and avoids the browser warning described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, webpack
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.