[TYPO3-dev] JSeventFunCalls onload executed twice
Martin Kutschker
martin.t.kutschker at n0spam.blackbox.net
Thu Dec 28 16:58:47 CET 2006
Christoph Koehler schrieb:
> Hey there,
>
> I noticed that the JSevent onload adds a onload to the body tag as well
> as a document.onload to the JS, which I think results in everything that
> is called to be loaded twice. Might not be too bad for most things, but
> Google Maps is loaded that way and doing that is not a cheap process.
> Is there any reason for that
I think it was added twice "just to be sure" and I think it is called
twice "only" in Opera. But yes, once should be enough. I'd use the
onload handler directly, but perhaps someone prefers the attribute for
the sake of ancient browsers.
Masi
More information about the TYPO3-dev
mailing list