Thread: Why is it....
View Single Post
Old 4-15-08, 0:16   #20 (permalink)
David
MX6.com Supporter - Click Here for Information
  Total: 719 Power: 5
 
David's Avatar
 
Join Date: Aug 2001
Location: Gold Bar, WA, USA
Age: 30
iTrader: (1)
Here's the long answer:

How To: Stop Firefox Dual Pageloads
« on: March 15, 2008, 04:04:48 PM »

Mozilla Firefox (Also Gecko Web Engine, powers multiple browsers), tends to pull pages in pieces from the server while error-checking code, and if it discovers a error, it may decide to download the entire page, render the error into the most readable format then re-download the entire page again, before displaying. This can cause a few issues.

1. PHP statistics counters will show 2 separate page loads for each page load.

2. When transferring page to page, if the error is present on all pages, the layout will flash to default white screen between each page load. Its very annoying for admins like myself with a dark background.


I discovered this issue with a some VERY small errors in my CSS Style Sheet. It caused the page to load twice every time. It would see the error half way processing, then re-render the page itself, presumably fixing the error, then re-download, and display. Played circles with my statistics, and white flashes between page changes.

Something good to note: Firefox by default, will load a page twice every time, if it is the first cache of the page. So, if you clear your browser cache, visit the site again, it will load twice that once until the cache is cleared, or overwritten.

Try these:

1. Verify all HTML Color Codes are prepended by # - E.G. "#ffffff" not "ffffff".
2. Verify all CSS Sheet parameters end with ; (Even though it may display properly. It may cause dual page loads.)
3. Verify any font parameters are specifically correct. E.G
Correct Font Code

Code:
.smalltext {color:#000000; font: bold 1px Verdana;}


Is Not The Same As (No Space Before "Bold"):

Code:
.smalltext {color:#000000; font:bold 1px Verdana;}


4. One very important issue that causes this. Make sure all CSS Background Image parameters are correct, or not present. Just deleting the image path, without removing the parameter, will cause the error in Firefox. I used to delete the image path, and leave the code for later use. But found this error was caused by that.

E.G. (This image path is non-existant, thus Firefox will read it as a error.)

Code:
body {background-image:url("");}


An efficient way to error-check all the code, is to use the Firefox built in Error Console, OR, remove pieces of the code in order, until the issue does not present itself, then find the error within the code that causes the dual loading.
________________________________________________________

Found this information which should help the problem:

How To: Stop Firefox Dual Pageloads
« on: March 15, 2008, 04:04:48 PM »

Mozilla Firefox (Also Gecko Web Engine, powers multiple browsers), tends to pull pages in pieces from the server while error-checking code, and if it discovers a error, it may decide to download the entire page, render the error into the most readable format then re-download the entire page again, before displaying. This can cause a few issues.

1. PHP statistics counters will show 2 separate page loads for each page load.

2. When transferring page to page, if the error is present on all pages, the layout will flash to default white screen between each page load. Its very annoying for admins like myself with a dark background.


I discovered this issue with a some VERY small errors in my CSS Style Sheet. It caused the page to load twice every time. It would see the error half way processing, then re-render the page itself, presumably fixing the error, then re-download, and display. Played circles with my statistics, and white flashes between page changes.

Something good to note: Firefox by default, will load a page twice every time, if it is the first cache of the page. So, if you clear your browser cache, visit the site again, it will load twice that once until the cache is cleared, or overwritten.

Try these:

1. Verify all HTML Color Codes are prepended by # - E.G. "#ffffff" not "ffffff".
2. Verify all CSS Sheet parameters end with ; (Even though it may display properly. It may cause dual page loads.)
3. Verify any font parameters are specifically correct. E.G
Correct Font Code

Code:
.smalltext {color:#000000; font: bold 1px Verdana;}


Is Not The Same As (No Space Before "Bold"):

Code:
.smalltext {color:#000000; font:bold 1px Verdana;}


4. One very important issue that causes this. Make sure all CSS Background Image parameters are correct, or not present. Just deleting the image path, without removing the parameter, will cause the error in Firefox. I used to delete the image path, and leave the code for later use. But found this error was caused by that.

E.G. (This image path is non-existant, thus Firefox will read it as a error.)

Code:
body {background-image:url("");}


An efficient way to error-check all the code, is to use the Firefox built in Error Console, OR, remove pieces of the code in order, until the issue does not present itself, then find the error within the code that causes the dual loading.

____________________________________________________________

I have made this information available to the admins, but can give you no idea as to when the problem will be fixed.

My Garage*KLZE*Spec Stage 2*9lb Fidanza Flywheel*Borla CatBack*Hot Shot Headers*RR-Racing Inserts*Ksports*22mm Addco RSB*B&M STS*Outlaw Spacers*Stainless Brake/clutch lines*VOA BBK Front/Rear*Black Altezza Tails*JDM Door Sills*Jspec Headlights*Molded Shogun Body Kit/scoop*Shaved*Front/Rear Camera*Custom Interior*Painted Engine bay*Dynamat Trunk/Doors*Aluminium Gauge Rings*Interior/Exterior LEDs*
David is offline   Reply With Quote