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

Custom attributes for resource tags #23

Closed korotin closed 10 years ago

korotin commented 10 years ago

Hi, Ryan!

With my patch user can add custom attributes for resource tags by using objects instead of strings.

// This code will produce link or style tag with media="print":
LazyLoad.css(['foo.js', 'bar.js', {url: 'baz.js', media: 'print'}]);
rgrove commented 10 years ago

I'm not interested in this change, but please feel free to maintain it in your fork. Thanks!