Possible timing issue with G3
|
griffinmt
![]()
Joined: 2009-09-06
Posts: 128 |
Posted: Mon, 2009-10-26 01:17
|
|
First, I am running at the exp level as of Saturday 24/09 Using Chrome and Firefox, and after making a change to screen.css, the initial album photos don't load up for display (the g-view area is empty). This does not occur with IE8. Do Chrome and Firefox proceed with the tag processing in <body> before <link>'s are completed?? Martyn T. Griffin |
|
| Login or register to post comments |


Posts: 128
I think I have (almost) found out the strange behaviour
The following is what I recently added to the top of page.html.php
Note that lines two and three are commented out. In this mode everything works as expected. But as soon as I uncomment line two, a strange thing happens to the resulting html output which I can't understand. It seems that all the generated output after the <title> (<link>, <script> etc.) are actually appearing AFTER the <body>.
That probably explains why IE8 seems to work - bad error handling perhaps.
The included module is just a simple class definition (attached below). How could this be???
Martyn T. Griffin
Posts: 10953
I'm not a programmer, but it looks to me like you're trying to insert CSS before even the doctype and <html> tag are generated.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 128
Not really.
The two lines of code at the top include the code to define the class and then to invoke it.
When it is invoked, it checks to see if either of the two control files are newer than the screen.css, and if either is newer, they are used to recreate the screen.css file. No page output is generated by this.
All this happens before the rest of the page is processed.
Martyn T. Griffin
Posts: 128
This is the difference in the outputs, with and without the inclusion of the class. The info is taken from firebug.
Martyn T. Griffin