feat(ready): Add 'platform-ready' css class to the body when the platform is ready

This commit is contained in:
Adam Bradley
2014-03-20 16:38:59 -05:00
parent fe44a7d98b
commit 681a6a2ed7

View File

@@ -320,6 +320,10 @@
}
readyCallbacks = [];
ionic.trigger('platformready', { target: document });
ionic.requestAnimationFrame(function(){
document.body.classList.add('platform-ready');
});
}
})(this, document, ionic);