WPIntell

Source evidence

Exclude a specific CSS file

Speculative Loading 路 support 路 2024-06-15T08:46:00+00:00

mixedsentiment
mediumseverity
0.78relevance
6replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 35 rows with source links

17.1% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

29 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Gyurmey resolved
Hi, I use this tehnique to add a transition when the page loads, but the speculative rules cause the CSS to be preloaded and the transition doesn鈥檛 work. My question is, is it possible to exclude a specific CSS file to rule out this issue? You would need to use a technique like this: https://developer.chrome.com/docs/web-platform/prerender-pages#hold-back-other-content This example is for a script tag, but the same technique could be used for a <link rel=stylesheet> tag. Thank you, so as I understood it, the only way is to add the CSS file via JS? Correct. The other alternative is to use prefetch rather than prerender. I understand and thank you very much for the explanation 馃檪 And perhaps a better way to do this page load transition is to instead use the newly-supported cross-document view transitions now available in Chrome and Edge. This reply was modified 1 year, 11 months ago by Weston Ruter . @westonruter Thanks for the tip 馃檪 I鈥檒l look into it.

Comments

6 shown
tunetheweb 2024-06-15T08:55:00+00:00

You would need to use a technique like this: https://developer.chrome.com/docs/web-platform/prerender-pages#hold-back-other-content This example is for a script tag, but the same technique could be used for a <link rel=stylesheet> tag.

Gyurmey 2024-06-15T09:05:00+00:00

Thank you, so as I understood it, the only way is to add the CSS file via JS?

tunetheweb 2024-06-15T09:26:00+00:00

Correct. The other alternative is to use prefetch rather than prerender.

Gyurmey 2024-06-15T10:45:00+00:00

I understand and thank you very much for the explanation 馃檪

Weston Ruter 2024-06-16T08:28:00+00:00

And perhaps a better way to do this page load transition is to instead use the newly-supported cross-document view transitions now available in Chrome and Edge. This reply was modified 1 year, 11 months ago by Weston Ruter .

Gyurmey 2024-06-19T12:07:00+00:00

@westonruter Thanks for the tip 馃檪 I鈥檒l look into it.