MicrosoftEdge / MicrosoftEdge/MSEdgeExplainers

[LinkTagModuleImport] render blocking

Open
#1,375 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
1.4k
Forks
286
Avg merge
3d 1h
Merged PRs (30d)
8

Description

Some people want to solve FOUC with module <link> stylesheet tags.

I didn't see it in the explainer, so I thought I'd comment that I think it should be non-blocking by default, with opt in:

Non-blocking:

<link
  rel=stylesheet
  type=module
  href=foo
/>

Blocking (one way to avoid FUOC with the trade off that content after the link tag is not rendered until after the network request):

<link
  rel=stylesheet
  type=module
  href=foo
  blocking
/>

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the LinkTagModuleImport explainer referenced in the issue and compare its treatment of module stylesheet links with the proposed examples. Determine whether non-blocking behavior should be the default and how an opt-in blocking attribute would be specified; done means the explainer clearly records the chosen semantics and trade-offs.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.