rgrove / lazyload

:skull: An ancient tiny JS and CSS loader from the days before everyone had written one. Unmaintained.
MIT License
1.39k stars 288 forks source link

load of js and css together when they are related #18

Open Plixo opened 11 years ago

Plixo commented 11 years ago

Using Lazyload to load asynchronouslsy js and css on onload event for some part of my pages that are not critical.

How can I get jss and css to load in parallel and still detect both have finished loaded ?

For now I can serialize by loading css first and js in the callback or opposite but not optimal ;-)

rgrove commented 11 years ago

This isn't currently possible with LazyLoad, although it wouldn't be too hard to implement if someone wants to take a stab at it.