https://redmine.gc.cuny.edu/https://redmine.gc.cuny.edu/favicon.ico2009-12-03T15:34:50ZCUNY Graduate Center - Project Tracking SystemCUNY Academic Commons - Bug #105: Shift in Header upon Page Loadhttps://redmine.gc.cuny.edu/issues/105?journal_id=2152009-12-03T15:34:50ZMatt Goldmattgold@gmail.com
<ul></ul><p>Just FYI, I see the shift in both Win Chrome and FF. Haven't checked IE. Win XP system.</p> CUNY Academic Commons - Bug #105: Shift in Header upon Page Loadhttps://redmine.gc.cuny.edu/issues/105?journal_id=2172009-12-03T16:49:24ZBoone Gorgesboone@gorg.es
<ul></ul><p>Sorry to butt in here, but I took a quick look and I think this has to do with the scroll bar. It's only when the scroll bar appears (which is when enough of the page has been loaded to require a scrollbar) that the header shifts. The only real solution I know for this (on a centered layout, which can't be anchored to the left side of the screen) is to put an invisible div in the background that has a height of 101%, which forces the scrollbar to always be present. But Michael, you probably know better than I do.</p> CUNY Academic Commons - Bug #105: Shift in Header upon Page Loadhttps://redmine.gc.cuny.edu/issues/105?journal_id=2182009-12-03T16:59:03ZZach Daviszach@castironcoding.com
<ul></ul><p>I would argue that this isn't really a bug at all, but rather a matter of how browsers work. We shouldn't try to manipulate the presence of the scroll bar. If we really want to address this (and I think we have much bigger fish to fry), then we should focus on optimizing CSS and markup so that the page loads faster.</p>
<p>Zach</p> CUNY Academic Commons - Bug #105: Shift in Header upon Page Loadhttps://redmine.gc.cuny.edu/issues/105?journal_id=2192009-12-03T17:46:56ZBoone Gorgesboone@gorg.es
<ul></ul><p>I agree with Zach.</p> CUNY Academic Commons - Bug #105: Shift in Header upon Page Loadhttps://redmine.gc.cuny.edu/issues/105?journal_id=2252009-12-03T21:23:07ZMatt Goldmattgold@gmail.com
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Reporter Feedback</i></li><li><strong>Priority name</strong> changed from <i>High</i> to <i>Low</i></li></ul><p>I disagree with Zach, but now is not the time to discuss -- as Zach says, we have bigger fish to fry.</p>
<p>So let's keep this ticket open on a lower priority and get to it later. Thanks for getting rid of the big issue -- the white background on header load.</p> CUNY Academic Commons - Bug #105: Shift in Header upon Page Loadhttps://redmine.gc.cuny.edu/issues/105?journal_id=2312009-12-03T21:36:32ZZach Daviszach@castironcoding.com
<ul></ul><p>Ok - interested in hearing your reasons, Matt. I'm a pretty strong believer in the principle that a website should not do things that interfere with the basic functioning of the browser. Websites shouldn't break back and forward button functionality, for example, and they shouldn't manipulate scroll bars (except, perhaps, to turn them off entirely for the occasional pop-up, but then who uses popups anymore anyhow?). If we want to change how the page is rendered, the correct way to do it is to address it at the level of the DOM and the order in which styles are declared / applied, not by relying on a hack. What I was trying to say was that the problem you're identifying is not something that needs to be addressed in and of itself; it's the (correct) side effect of another problem, which is messy inheritance in the CSS and less-than-ideal markup.</p>
<p>I wonder if it would make a difference to simply combine the CSS into a single file (as a short-term solution). It might be worth packing / minifying the CSS so that the browser can parse and process it in a single pass instead of waiting for multiple stylesheets to load.</p>
<p>Zach</p> CUNY Academic Commons - Bug #105: Shift in Header upon Page Loadhttps://redmine.gc.cuny.edu/issues/105?journal_id=7612010-05-20T15:15:30ZBoone Gorgesboone@gorg.es
<ul></ul><p>Matt, can I get some feedback on this? Since moving to the new server, and the new (much svelter) theme, the load lag has decreased by a lot on my end. Is this true for you too?</p> CUNY Academic Commons - Bug #105: Shift in Header upon Page Loadhttps://redmine.gc.cuny.edu/issues/105?journal_id=7732010-05-20T19:05:54ZMatt Goldmattgold@gmail.com
<ul><li><strong>Status</strong> changed from <i>Reporter Feedback</i> to <i>Resolved</i></li></ul><p>I still see the shift, but I guess it's not a big deal. Let's close the ticket.</p>