Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#2 2009-03-20 01:08:47

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

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

#3 2009-03-20 09:10:36

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

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

#4 2009-03-20 13:47:51

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

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

#7 2009-03-25 08:01:53

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

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

Board footer

Powered by FluxBB