mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feat(ready): Add 'platform-ready' css class to the body when the platform is ready
This commit is contained in:
@@ -320,6 +320,10 @@
|
||||
}
|
||||
readyCallbacks = [];
|
||||
ionic.trigger('platformready', { target: document });
|
||||
|
||||
ionic.requestAnimationFrame(function(){
|
||||
document.body.classList.add('platform-ready');
|
||||
});
|
||||
}
|
||||
|
||||
})(this, document, ionic);
|
||||
|
||||
Reference in New Issue
Block a user