[thelist] A question on optimization.

Chris Heilmann lists at onlinetools.org
Mon Mar 14 05:44:05 CST 2005


> Volkan Özçelik <volkan.ozcelik at gmail.com>:
>
>> 2. The scripts start loading and the images do not load until all the
>> scripts load. (which might take up to 8 seconds on an 56K connection).

Why not make the scripts dependent on the images being loaded?

> For this reason, and because it's often more convenient to have all page
> elements available at script run-time (rather than relying on
> window.onload), putting <script>s at the bottom of the page is probably
> a good idea in general.

Yes, but from a maintainability point of view it is a nightmare. HTML can
be parsed and used, mixed HTML and scripts and inline CSS can't be parsed
and reused.

-- 
Chris Heilmann
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/
Binaries: http://www.onlinetools.org/



More information about the thelist mailing list