Schrijver
| Faster rendering
|
Grauw msx professional Berichten: 1002 | Geplaatst: 20 Juni 2005, 12:13   |
Heya,
As MSX.org is using a table-based layout, it suffers from incremental rendering problems. Especially when it is having a ‘slow server day’, the content of the page ‘snaps’ into place (because a table cell isn’t rendered until its entire contents have finished loading, and the widths are also recalculated when that happens, causing everything to move about).
However, there is a solution in the form of the CSS property table-layout: fixed; and the col element. I don’t know the exact details, but if you specify widths like:
<table style="table-layout:fixed;" width="100%">
<col width="150">
<col width="*">
<col width="150">
<tr>
<td>...</td>
...
</tr>
</table>
I believe that should work.
I think it would be worthwhile to look into this optimization.
~Grauw
|
|
Grauw msx professional Berichten: 1002 | Geplaatst: 20 Juni 2005, 12:18   |
Perhaps the CSS property isn’t even necessary (according to the HTML specification it should work without).
~Grauw
|
|
snout
 msx legend Berichten: 4991 | Geplaatst: 20 Juni 2005, 12:21   |
thx for the tip. I think the table-layout:fixed; is needed, as I'm already using them colgroups  Either way, I'm working on some other optimizations to the website, I'll include this one in it. |
|
ro msx guru Berichten: 2305 | Geplaatst: 20 Juni 2005, 16:15   |
don't get me started.
Drop the whole TABLE ish and start learning and USING the mighty CSS. that also give you the power to ONLINE/REALTIME change the whole look of a site in just 1 click (change sheets)
need help? sure, I'll point you some handy dandy URLs.
it's really good stuff.
cheers
|
|
snout
 msx legend Berichten: 4991 | Geplaatst: 20 Juni 2005, 18:54   |
The less/no tables. more CSS plan is one that's on the ToDo list already, but way at the bottom. For the time being, I only have the time to implement a few smaller improvements periodically. However, I do think the CSS-MRC will go public before the Fuzz releases Fubsy  |
|
manuel msx guru Berichten: 3368 | Geplaatst: 20 Juni 2005, 19:58   |
Ouch!
|
|
sander
 msx addict Berichten: 335 | Geplaatst: 20 Juni 2005, 19:58   |
auwts!
|
|
Sonic_aka_T
 msx guru Berichten: 2261 | Geplaatst: 21 Juni 2005, 00:10   |
burn!!!  |
|
wolf_
 msx legend Berichten: 4629 | Geplaatst: 22 Juni 2005, 00:36   |
..that's because Ro is a lazy sob who spends way too much time on singing the national anthem while eating pudding!
The analogy with Peter Pan is that MSX'ers should never grow-up.. |
|
ro msx guru Berichten: 2305 | Geplaatst: 22 Juni 2005, 09:34   |
...bananas dude.. bananas! (I hate pudding)
Fubsy to be released? whahaha, in your dreams. fair shot tho.. ouch. |
|
|
|
|