Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Fix for problem: Firefox 3, FOUC and incorrect width() on "ready"
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Karl Rudd  
View profile  
 More options Jun 26 2008, 3:37 am
From: "Karl Rudd" <karl.r...@gmail.com>
Date: Thu, 26 Jun 2008 17:37:06 +1000
Local: Thurs, Jun 26 2008 3:37 am
Subject: Fix for problem: Firefox 3, FOUC and incorrect width() on "ready"
This is a heads up for anyone having problems with Firefox 3.

I had a problem with finding the width()/outerWidth() of elements
during a "ready" function, it would always be the size of the window.

While debugging I also noticed a short "FUOC" (Flash Of Unstyled
Content), which tipped me off to the possible cause.

The solution was to move my CSS stylesheet _above_/_before_ my
JavaScript scripts.

To make it clearer, I had this:

        <script src="../scripts/jquery.js"></script>
        <script src="../scripts/common.js"></script>
        <link rel="stylesheet" href="../styles/common.css" type="text/css">

And I had to change it to this:

        <link rel="stylesheet" href="../styles/common.css" type="text/css">
        <script src="../scripts/jquery.js"></script>
        <script src="../scripts/common.js"></script>

This is perhaps similar to a problem experienced with an older version
of Safari.

I haven't gotten round to filing a bug report / looking to see if
one's been filed.

Karl Rudd


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Karl Swedberg  
View profile  
 More options Jun 26 2008, 12:05 pm
From: Karl Swedberg <k...@englishrules.com>
Date: Thu, 26 Jun 2008 12:05:24 -0400
Local: Thurs, Jun 26 2008 12:05 pm
Subject: Re: [jQuery] Fix for problem: Firefox 3, FOUC and incorrect width() on "ready"
Hi Karl,

thanks a lot for announcing the fix to this list. I'm sure a lot of  
people will appreciate seeing it. This thread on the jquery-dev list  
has been discussing this very issue (with the same suggested fix):

http://groups.google.com/group/jquery-dev/browse_thread/thread/463313...

--Karl
____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com

On Jun 26, 2008, at 3:37 AM, Karl Rudd wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google