Closed rgrove closed 13 years ago
Could just be a wrapper around calls to .js() and .css(). Something like this:
function both(cssURLs, jsURLs, callback) { var cssDone, jsDone; function finish() { if (cssDone && jsDone) { callback(); } } LazyLoad.css(cssURLs, function () { cssDone = 1; finish(); }); LazyLoad.js(jsURLs, function () { jsDone = 1; finish(); }); }
Could just be a wrapper around calls to .js() and .css(). Something like this: