Skip to Content


Stylegala news / September 2004 / JavaScript Load Placement

JavaScript Load Placement

The Man in Blue has a nice write-up on the most opportune time to run JavaScript functions that affect page display properties. Sadly there are no big surprises here, the two major players differ on what has to be loaded before an onload event fires.

permanent link 28 sep at 21:08 by Shaun

There are 7 guest comments so far.

commentat 19:07 on 19 April 2007, Hospedagem wrote:

Hello,

Can I post the comments in this site?

Thanks

commentat 01:04 on 03 June 2007, news wrote:

thanks a lot

commentat 15:22 on 03 September 2007, logo designer wrote:

Still the same problem with javascript. It pushes your html code down further (hindering seo) and gives you a messy head tag.

commentat 05:20 on 16 October 2007, Custom Logo Design wrote:

The only problem I have with this method is that

if the page has graphics it can take a very long time before the JavaScript code executes.

I like the idea of the scheduler because it is unobtrusive, but in almost every case on your sample page, the scheduler method actually took longer to execute than the onload method.

commentat 17:19 on 13 February 2008, ceta wrote:

thanks man.. 1wz

commentat 19:13 on 27 April 2008, kpss wrote:

it's fine. thank you.

commentat 01:49 on 06 May 2008, kpss wrote:

i think you are wonderfull writer. thank you very much

Add a comment:

(required, non-public)

  |  Chars left: 1000

Keep the comment relevant, constructive and be polite.
A valid email address or URL to your site must be provided, or the comment might get deleted. Content seemed inappropriate or offensive may be edited and/or deleted. Avoid explicit language and words such as "sucks" and "ripoff". For more in-depth discussions use our forum. Email addresses are never displayed. Line breaks and paragraphs are automatically converted - no need to use <p> or <br/>. Quotes & apostrophes are automatically converted to smart punctuation. Be careful when copying and pasting portions of entries or other comments. The following inline HTML elements may be used: <strong><em><pre><q><blockquote><code>. All other code will get removed before posting. Don't forget to close your tags.


Search the archive

Stylegala news archive

Public news archive

News contributors


Features

Stylegala BookStore
The Stylegala BookStore has a massive archive of great books for you as a professional..
Bullet madness
Bullet madness is a list of 200 bullets, arrows and icons uploaded by our users.
CSS Reference
An alphabetical list over the most common CSS1 and CSS2 syntax and properties.

Sponsors

Logo design for $149

Advertise here