This project is archived and is in readonly mode.

#547 open
Matias N

Assets.css doesn't support onload event for all browsers

Reported by Matias N | March 24th, 2011 @ 04:50 PM | in 1.4.0.1 (closed)

The Assets.css does not support the onload property. This is because only IE and Opera fire the onload event when the stylesheet is loaded. Other browsers such as Firefox, Chrome and Safari do not listen on the event. To get around this, you will need to play around with a timer and the ownerNode properties.

I explain the full solution here, plus some MooTools code of how to get around it:
http://yearofmoo.com/2011/03/cross-browser-stylesheet-preloading/

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The MooTools Extensions

Shared Ticket Bins

People watching this ticket

Pages