Reply to Re: Such a command as 'onbeforeload'?

Your name:

Reply:


Posted by Thomas 'PointedEars' Lahn on 11/14/07 19:01

CJS wrote:
> Hi, I have a javascript popup which I want to happen BEFORE the rest of the
> page loads. It's something for people to read while quite a heavy page
> loads behind it.

If it is a popup window, it will be blocked. If it is something else,
loading it will only slow down or prevent loading of the other, more
important content; if it even works.

In any case, it is nothing that can be recommended. BTDT. You are far
better off with either reducing the size of the "heavy page", for example by
splitting it into several documents, and/or with structuring it better (for
example by avoiding layout tables in favor of CSS-positioned blocks) so that
the user can read the main content while it is loading.


F'up2 comp.lang.javascript

PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация