From 681a6a2ed743fab2352551156ff18dbb42549d4d Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Thu, 20 Mar 2014 16:38:59 -0500 Subject: [PATCH] feat(ready): Add 'platform-ready' css class to the body when the platform is ready --- js/utils/platform.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/utils/platform.js b/js/utils/platform.js index d71e99ad32..3d50066492 100644 --- a/js/utils/platform.js +++ b/js/utils/platform.js @@ -320,6 +320,10 @@ } readyCallbacks = []; ionic.trigger('platformready', { target: document }); + + ionic.requestAnimationFrame(function(){ + document.body.classList.add('platform-ready'); + }); } })(this, document, ionic);