I use http://github.hubspot.com/pace/ on a current project which preloads the entire page.
Is it possible to exclude certain elements from preloading?
E.g. I want my #header
and #banner
element to be visible right away, and let pace do its job for the rest of the page.
For me the "start" event is not triggered?
Pace.on("start", function() {
alert('heee');
});
Wheter in the document-ready nor out of the function. Pace.on("done", …
triggers just fine.
Update: my major problem at the moment is this …
$(window).load(function(){
$('body').addClass("page");
Pace.on('start', function() {
alert('start') // not fired
});
Pace.on('done', function() {
alert('done') // fired!
});
});