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

  1. Install the Prelinker module.
  2. Create a preload entity for a web font.
  3. Notice there is no option to set fetchpriority.
  4. Inspect the rendered preload tag — no fetchpriority attribute is output.
CommentFileSizeAuthor
#5 prelinker-prefetchpriority.png49.57 KBantonio nunez

Issue fork prelinker-3581606

Command icon 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

antonio nunez created an issue. See original summary.

antonio nunez’s picture

Issue summary: View changes
antonio nunez’s picture

Issue summary: View changes

antonio nunez’s picture

Assigned: antonio nunez » Unassigned
Status: Active » Needs review
StatusFileSize
new49.57 KB

The changes introduce a new feature that adds an optional `fetchpriority` field to the configuration entity.

frouco made their first commit to this issue’s fork.

lpeidro’s picture

Status: Needs review » Fixed

The test are already pssing so I merge the branch.
Thank you Antonio.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • antonio nunez committed d0f80ff2 on 2.0.x
    Issue #3581606: Add fetchpriority attribute support to preload entities
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.