wait-on-lib
wait-on-lib copied to clipboard
Waiting on an installed meteor package
I am using the imsky:holder package as follows
<div class="col-xs-6 col-sm-4 placeholder">
<img data-src="holder.js/200x200/auto/sky" class="img-responsive" alt="Generic placeholder thumbnail">
<h4 class="text-muted">Number of Producers</h4>
<span class="text-muted">3292</span>
</div>
but sometimes the placholders fail to load before the page is rendered, resulting in the alt text being displayed. Can I use your package to wait on holder.js? I have tried with this config but it just gets caught waiting, nothing happens
Router.route('/', {
name: 'dashboard',
waitOn: function(){
return [IRLibLoader.load('holder.js')]
}
});