You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I'm trying to avoid a really annoying FOUC on my website and I'm using a static export adapter. The problem can be easily solved by putting styles in the <head> element as <style> tags but SvelteKit does that only in dev mode and the production build uses <link> tags, which are not even present in the .html files and I assume are being added by the generated javscript? Anyway, is there some sane way of including my styles in the .html files instead generating separate css files like SvelteKit does in dev mode?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello! I'm trying to avoid a really annoying FOUC on my website and I'm using a static export adapter. The problem can be easily solved by putting styles in the
<head>
element as<style>
tags but SvelteKit does that only in dev mode and the production build uses<link>
tags, which are not even present in the.html
files and I assume are being added by the generated javscript? Anyway, is there some sane way of including my styles in the .html files instead generating separate css files like SvelteKit does in dev mode?Beta Was this translation helpful? Give feedback.
All reactions