Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

StealJs: problem loading css

$
0
0
There is a problem with standard steal bundle: when for the first time site is opened JS maybe loaded faster then CSS and thus application may start to initialize and render without CSS ready, that results in flaw visual effect for a second, but it is still bad thing.

What is your proposal to solve this problem? Is it possible to do out of the box with new steal now? In previous version of steal I instructed steal that production.css is already loaded and put link to css file in HTML before loading JS.

So couple of questions 
1) Is is possible to do out of the box? 
2) How to instruct new steal that css file is already loaded?
2.1) How to instruct new steal that css file is already loaded with steal.production bundled inside main bundle?

Viewing all articles
Browse latest Browse all 3491

Trending Articles