Forums
View unanswered posts | View active topics It is currently Fri Oct 31, 2014 8:55 am



Reply to topic  [ 3 posts ] 
 Stylesheet reloading flicker on each page in Firefox 
Author Message

Joined: Wed Jan 26, 2011 3:37 am
Posts: 2
Post Stylesheet reloading flicker on each page in Firefox
Hi, I am seeing a strange stylesheet reload problem in Firefox.
Every time I click through to another page, or refresh the current page, the stylesheet reloads which means for a brief moment you see the page without the styles. If I remove the call to PIE.htc from the stylesheet this problem goes away.
Is there a way to stop Firefox from calling the PIE.htc file?


Wed Jan 26, 2011 3:50 am
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1446
Post Re: Stylesheet reloading flicker on each page in Firefox
Firefox completely ignores the behavior rule, so I find it very hard to believe that your flickering issue is due to PIE. Can you provide more info?


Wed Jan 26, 2011 10:56 am
Profile

Joined: Wed Jan 26, 2011 3:37 am
Posts: 2
Post Re: Stylesheet reloading flicker on each page in Firefox
Many thanks for getting back to me so fast!

I can try to give you more info - if I knew what would help. I understand your point about FF ignoring the behaviour, it just seemed too much of a coincidence thet the problem stopped when I removed the references to PIE in the stylesheet. However ... I have re-uploaded my files to the web server and the problem seems to have gone away - so I may have been too hasty in jumping onto this forum. If it happens again I'll come back to this post, in the meantime I guess I'm OK.

UPDATE: I think this problem was caused by loading my style sheet after the javascript. My pages are using jQuery with a couple of plugins which makes for quite a lot of JS on the page. By moving the style sheet tag above the javascript I have solved the problem - I hope!.
e.g.
<link rel="stylesheet" href="styles.css" type="text/css" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="plugins.js"></script>

instead of:
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="plugins.js"></script>
<link rel="stylesheet" href="styles.css" type="text/css" />


Wed Jan 26, 2011 11:51 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot], Majestic-12 [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.