Problem/Motivation
Currently, the Prelinker module does not expose this attribute (fetchpriority), making it impossible to mark critical resources (e.g., the LCP font) as high priority while keeping secondary resources at default priority. This limits the module's usefulness for Core Web Vitals optimization.
Steps to reproduce
- Install the Prelinker module.
- Create a preload entity for a web font.
- Notice there is no option to set
fetchpriority. - Inspect the rendered
preloadtag — nofetchpriorityattribute is output.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | prelinker-prefetchpriority.png | 49.57 KB | antonio nunez |
Issue fork prelinker-3581606
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
antonio nunez commentedComment #3
antonio nunez commentedComment #5
antonio nunez commentedThe changes introduce a new feature that adds an optional `fetchpriority` field to the configuration entity.
Comment #7
lpeidro commentedThe test are already pssing so I merge the branch.
Thank you Antonio.