(how) is it possible to load the css before the JS after build? #5165
Unanswered
JeffreyArts
asked this question in
Q&A
Replies: 1 comment
-
I was searching for an answer to this question today and came across this issue if anyone knows how to approach this problem. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Because my JS is quite hefty on this project I am working on, it takes a while to load. Which is not a problem on its own. But because the CSS is only being parsed after the JS has loaded, the loading of the page is pretty darn ugly. Especially loading in the fonts (via CSS). Because of I want to switch the 'link rel="stylesheet"' line with the 'link rel="modulepreload"' via the config so that the stylesheet is loaded before the javascript. But I am also curious of why this is not the default behavior in the first place.
Beta Was this translation helpful? Give feedback.
All reactions