function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kenny.mccollkenny.mccoll 

Standard CSS files loading twice?

Apologies if this shows up twice... the form just ate my first attempt at this...

 

I have a fairly standard visualforce page and it appears to be loading the standard CSS files twice.  The relevant page definition

 

<apex:page showHeader="true" sidebar="false"  >

 

 The standard CSS files loaded:

 

1288206287000/Theme3/default/common.css
1288206287000/Theme3/default/common.css
1288206287000/Theme3/default/elements.css
1288206287000/Theme3/default/elements.css
1288206287000/Theme3/default/extended.css
1288206287000/Theme3/default/extended.css
1288206287000/Theme3/default/setup.css
1288206290000/Theme3/00DS00000007fNA/00580000003Lgwi/dCustom0.css
1288206290000/Theme3/00DS00000007fNA/00580000003Lgwi/dCustom0.css
1288206290000/Theme3/dStandard.css
1288206290000/Theme3/dStandard.css

 

 

Only the newly released setup styling is not loaded twice.

 

I can "fix" this by setting showHeader="false" but obviously this also switches the header off (duh!) 

 

I have noticed that switching the header off saves about 1/2 a second in the page load time.  I doubt that the double loading of these files takes that amount of time, but my page contains a moderately complex ExtJS grid and I am wondering if the rendering is slowed down considerably by the double processing of the CSS rules.  One of my clients insists that performance has degraded across the board since the new UI came in and I am wondering if this is a contributing factor.

 

With a bit more investigation:

 

showHeader false, standardStylesheets false -- no standard files loaded (correct)

showHeader false, standardStylesheets true -- files loaded once (correct)

showHeader true, standardStylesheets false -- files loaded twice (incorrect, but not really a valid setting)

showHeader true, standardStylesheets true --  files loaded twice (incorrect)

 

Anybody else noticed this?  Any workarounds?  Any plans to fix?   

 

I've also seen some issues with font sizes on legacy visualforce pages - maybe double processing of % sizes????