Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-03-19 20:04:18
- jmachacek
- New Member
- Registered: 2009-03-19
- Posts: 7
Intermittent Flash of Unstyled Content?
Hello,
I recently finished setting up a site using TextPattern. Everything works amazingly well, with one exception—-sometimes when switching pages (maybe one in 100 switches), I get a Flash of Unstyled Content for a split second.
I noticed this behavior on another site using TextPattern, although I can’t find the link to that site at the moment… it was a graphic designer’s web site.
I read that there are CSS issues when a site’s Production Status is set to ‘Testing’, so I set it to ‘Live’ but I still occasionally saw the FOUC. (I’m using Firefox 3.07)
Has anyone else seen this behavior? Has anyone figured out a workaround?
Thanks,
Jason
Offline
Re: Intermittent Flash of Unstyled Content?
Are the stylesheets coming from the TXP styles tab or external stylesheets in the filesystem?
I always but my CSS files in the filesystem – and I’ve never had an issue.
Offline
Re: Intermittent Flash of Unstyled Content?
i’ve also seen it happen when you load javascript before the css.
~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~
Offline
Re: Intermittent Flash of Unstyled Content?
Good point Kemie,
That seems a likely culprit.
I usually keep the essential JS in the <head> – and then move everything else down to the bottom of the page – just before </body>
Offline
#5 2009-03-25 01:02:25
- jmachacek
- New Member
- Registered: 2009-03-19
- Posts: 7
Re: Intermittent Flash of Unstyled Content?
Thanks a lot for the helpful responses! Unfortunately I’m seeing it on pages that don’t have any Javascript, and the pages on which I do use Javascript have the Javascript in the <head> after the <txp:css format=“link” /> line.
Is moving the CSS out of Textpattern and onto the filesystem what most people do when using Textpattern? I guess it makes sense if the database query in css.php takes a while that you’d see unstyled content momentarily.
Thanks again,
Jason
Offline
#6 2009-03-25 07:12:25
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: Intermittent Flash of Unstyled Content?
The use of @import in CSS can cause the unstyled content to be seen briefly as well.
Offline
Re: Intermittent Flash of Unstyled Content?
jmachacek wrote:
Is moving the CSS out of Textpattern and onto the filesystem what most people do when using Textpattern? I guess it makes sense if the database query in css.php takes a while that you’d see unstyled content momentarily.
Well, sometimes you can have your cake and eat it too:)
rvm_css allows you to maintain your css in the db but also saves it as a static file.
Last edited by colak (2009-03-25 08:02:36)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#8 2009-03-25 20:58:13
- jmachacek
- New Member
- Registered: 2009-03-19
- Posts: 7
Re: Intermittent Flash of Unstyled Content?
Thanks for all the feedback guys, and thanks colak for the plugin link. It looks like this should do the trick for me!
Jason
Offline