MiroHibler / meteor-preloader

A Meteor "lazy-loader" for external .js and .css libraries
75 stars 3 forks source link

Question about preloader example #10

Closed WilliamHua closed 9 years ago

WilliamHua commented 9 years ago

Do we have to build PreloadController with your example code or is that what your library is doing?

Also, how do we load more than 1 style sheet/javascript file?

WilliamHua commented 9 years ago

"No, you don’t need to build the PreloadController, it’s already defined within the package. Just include it in your route.

Adding multiple files to preload is easy - instead of supplying one string (file), supply the array of strings (files)."