Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Flash of Unstyled Content (FOUC) in Firefox 3


Go to End


2 Posts   3188 Views

Avatar
streetdaddy

32 Posts

1 July 2008 at 6:17pm

I just starting a new SS theme and I'm noticing the old FOUC (http://www.bluerobot.com/web/css/fouc.asp/) problem, but in Firefox 3 (classic FOUC is an IE issue).

So, I've found reference to a fix (http://groups.google.com/group/jquery-en/browse_thread/thread/95465c4025cfd73d), but in my Page.ss there isn't any sort of placeholder for the stylesheet references? I can see in PageController where the stylesheets are called, but this provides no control over where in <head> the references are placed.

Any ideas?

Avatar
Willr

Forum Moderator, 5523 Posts

1 July 2008 at 10:51pm

Theres 2 methods of including stylesheets - by default we use requirements in the PageController - if you are having issues then try and hard code then in the template instead - the idea behind Requirements to load the css is so we can do things like compress all the files into 1 http request, block the file when we need it etc, but including it from the Page.ss would work fine