Correctly handle DOM Ready states
Correctly handle DOM Ready states

Previously, if the script was loaded while in `document.readyState` of `interactive`, the `domReady` function is never called.

See https://developer.mozilla.org/en-US/docs/Web/API/document.readyState for explanation of the proper detection of `DOMContentLoaded`
Gregcop1/ionic,janglednerves/ionic,chrisbautista/ionic,MrChen2015/ionic,100goals/ionic,staney7/ionic,leerduo/ionic,amitparrikar/ionic,ahmadawais/ionic,SobolevLexa/ionic,guaerguagua/ionic,felquis/ionic,asfandiyark7/ionic,GeorgeMe/ionic,Baskmart/ionic,astagi/ionic,femotizo/ionic,contigo/ionic,Testoni/ionic,oneillsp96/ionic,DiZyStudio/ionic,taraszerebecki/ionic,openbizgit/ionic,zhiqiangli520210/ionic,ihongcn/ionic,uidoyen/ionic,glustful/ionic,deer-hope/ionic,jtomaszewski/ionic,zhengqiangzi/ionic,n0b0dy897/ionic,edwardchor/ionic,yanzhihong23/ionic-nono,x303597316/ionic,zhiqiangli520210/ionic,caiiiycuk/ionic,htc550605125/ionic,Jeremy017/ionic,Gregcop1/ionic,PressReader/ionic,Flllexa/ionic,vladipus/ionic,zhonggaoyong/ionic,astagi/ionic,100goals/ionic,blueElix/ionic,felquis/ionic,100goals/ionic,possan/ionic,KholofeloMoyaba/atajo-ui,thiagofelix/ionic,ddddm/ionic,beauby/ionic,ahmadawais/ionic,janglednerves/ionic,pargatsingh-webklabs/ionic,MrChen2015/ionic,Sourazou/login,SobolevLexa/ionic,5amfung/ionic,puurinternet/ionic,lazamar/ionic,sitexa/ionic,jee1mr/meteor-ionic,Jeremy017/ionic,TakayukiSakai/ionic,wkrueger/ionic,ihongcn/ionic,JoeyAndres/meteoric-sass,asfandiyark7/ionic,leeric92/ionic,daew823/ionic,GhostGroup/ionic,baiyanghese/ionic,GhostGroup/ionic,ViniciusAugusto/ionic,leejeap/ionic,agyrafa/ionic,AppGyver/ionic,vladipus/ionic,jeremyrussell/ionic,gyx8899/ionic,baiwyc119/ionic,csbz17027/ionic,VinceOPS/ionic,Kryz/ionic,cnbin/ionic,mingming1986/ionic,blueElix/ionic,yurtaev/ionic,gyx8899/ionic,vjrantal/ionic,jamesdixon/ionic,staney7/ionic,eaglesjava/ionic,xzyfer/ionic,jango2015/ionic,csbz17027/ionic,r14r/fork_ionic_master,KholofeloMoyaba/atajo-ui,sitacote/ionic-across,edparsons/ionic,hanmichael/ionic,cbmeeks/ionic,Niades/ionic,yalishizhude/ionic,ezc/ionic,x303597316/ionic,jamesdixon/ionic,jianganglu/ionic,open-anesthesia/ionic,gyx8899/ionic,ralic/ionic,x303597316/ionic,ihongcn/ionic,NandoKstroNet/ionic,emonidi/ionic,laispace/ionic,vjrantal/ionic,possan/ionic,oneillsp96/ionic,brant-hwang/ionic,zhengqiangzi/ionic,Xeeshan94/ionic,r14r-work/fork_ionic_master,jianganglu/ionic,r14r-work/fork_ionic,zittix/ionic,leeric92/ionic,hanmichael/ionic,zyaboutblank/ionic,jayvi/ionic,EricCheung3/ionic,rreinold/FitnessDashboard_IonicApp,femotizo/ionic,emonidi/ionic,anongtech/ionic,lutrosis81/manup-app,Gregcop1/ionic,amitparrikar/ionic,leerduo/ionic,MarcBT/ionic,pargatsingh-webklabs/ionic,trevorgrayson/ionic,DiZyStudio/ionic,promactkaran/ionic,johnli388/ionic,xzyfer/ionic,kylezhang/ionic,oneillsp96/ionic,pod4g/ionic,hectoruch/ionic,ViniciusAugusto/ionic,MartinMa/ionic,fangjing828/ionic,leerduo/ionic,SaadBinShahid/ionic,bewebltd/ionic,guaerguagua/ionic,treejames/ionic,n0b0dy897/ionic,edwardchor/ionic,baiyanghese/ionic,zyaboutblank/ionic,sloops77/ionic,JsonChiu/ionic,DurgaprasadPati/ionic,brant-hwang/ionic,kylezhang/ionic,JackieLin/ionic,femotizo/ionic,ralic/ionic,q310550690/ionic,DurgaprasadPati/ionic,zhiqiangli520210/ionic,jayvi/ionic,huangsen0912/ionic,jasdeepkhalsa/ionic,5amfung/ionic,mhartington/ionic,yurtaev/ionic,954053260/ionic,leeric92/ionic,qzapaia/ionic,MeteorPackaging/ionic,SobolevLexa/ionic,hectoruch/ionic,thiagofelix/ionic,thompsonemerson/ionic,chrisbautista/ionic,Jeremy017/ionic,sloops77/ionic,jomaf1010/ionic,zittix/ionic,MrChen2015/ionic,daew823/ionic,r14r-work/fork_ionic_master,r14r-work/fork_ionic_master,janij/ionic,xuyuanxiang/ionic,youprofit/ionic,mingming1986/ionic,MeteorPackaging/ionic,beauby/ionic,hotarzhang/ionic,chinakids/ionic,taraszerebecki/ionic,Baskmart/ionic,envistaInteractive/ionic,leobetosouza/ionic,jianganglu/ionic,baiwyc119/ionic,ctetreault/ionic,sthashree/ionic,KholofeloMoyaba/atajo-ui,SaadBinShahid/ionic,gyx8899/ionic,chinakids/ionic,oabc124/ionic,yanzhihong23/ionic-nono,sitexa/ionic,uus169/ionic,urish/ionic,timtimUp/ionic,thebigbrain/ionic,microlv/ionic,puurinternet/ionic,baiwyc119/ionic,taraszerebecki/ionic,jeremyrussell/ionic,mhartington/ionic,cesarmarinhorj/ionic,staney7/ionic,felipealbuquerq/ionic,pod4g/ionic,buiphu/ionic,q310550690/ionic,Jandersolutions/ionic,ezc/ionic,uidoyen/ionic,mhartington/ionic,lazamar/ionic,ezc/ionic,angrilove/ionic,htc550605125/ionic,zyaboutblank/ionic,ptarjan/ionic,5amfung/ionic,MartinMa/ionic,DiZyStudio/ionic,jango2015/ionic,promactkaran/ionic,GhostGroup/ionic,youprofit/ionic,WingGao/ionic,jango2015/ionic,DiZyStudio/ionic,sitexa/ionic,envistaInteractive/ionic,fjzdjd/ionic,ptarjan/ionic,ezc/ionic,jtomaszewski/ionic,oabc124/ionic,freedomdebug/ionic,ctetreault/ionic,nelsonsozinho/ionic,lewisl9029/ionic,bewebltd/ionic,promactkaran/ionic,cnbin/ionic,TakayukiSakai/ionic,mingming1986/ionic,MeteorPackaging/ionic,hectoruch/ionic,AndyShiTw/ionic,n0b0dy897/ionic,trevorgrayson/ionic,sitacote/ionic-across,michaellourenco/ionic,954053260/ionic,leejeap/ionic,urish/ionic,CNVCrew/ionic,lutrosis81/manup-app,felipealbuquerq/ionic,Testoni/ionic,jeremyrussell/ionic,jayvi/ionic,wkrueger/ionic,qzapaia/ionic,agyrafa/ionic,tkh44/ionic,AndyShiTw/ionic,jvkops/ionic,janglednerves/ionic,freedomdebug/ionic,jeremyrussell/ionic,glustful/ionic,buiphu/ionic,PressReader/ionic,GeorgeMe/ionic,lutrosis81/manup-app,thebigbrain/ionic,Niades/ionic,LawrenceHan/ionic,Jeremy017/ionic,Niades/ionic,abcd-ca/ionic,sitacote/ionic-across,VinceOPS/ionic,RodrigoIbarraSanchez/ionic,ptarjan/ionic,MarcBT/ionic,deer-hope/ionic,eaglesjava/ionic,cleor41/meteor-ionic,uus169/ionic,nraboy/ionic,rreinold/FitnessDashboard_IonicApp,fangjing828/ionic,awhedbee22/ionic,baiwyc119/ionic,daew823/ionic,vjrantal/ionic,oneillsp96/ionic,rreinold/FitnessDashboard_IonicApp,leobetosouza/ionic,jee1mr/meteor-ionic,jtomaszewski/ionic,r14r-work/fork_ionic,rreinold/FitnessDashboard_IonicApp,ihongcn/ionic,microlv/ionic,eyalish/ionic,emonidi/ionic,NandoKstroNet/ionic,astagi/ionic,johnli388/ionic,zhengqiangzi/ionic,qzapaia/ionic,Flllexa/ionic,954053260/ionic,SaadBinShahid/ionic,fjzdjd/ionic,celsoyh/ionic,ahmadawais/ionic,Jandersolutions/ionic,Niades/ionic,possan/ionic,thebigbrain/ionic,JsonChiu/ionic,treejames/ionic,eric-stanley/ionic,zittix/ionic,anongtech/ionic,pod4g/ionic,anongtech/ionic,huangsen0912/ionic,MJefferson/ionic,LawrenceHan/ionic,eaglesjava/ionic,ViniciusAugusto/ionic,janglednerves/ionic,willshen/ionic,leeric92/ionic,edparsons/ionic,Baskmart/ionic,PaperMonster/ionic,cesarmarinhorj/ionic,r14r/fork_ionic_master,AlphaStaxLLC/ionic,anongtech/ionic,agyrafa/ionic,lewisl9029/ionic,fangjing828/ionic,JackieLin/ionic,Kryz/ionic,trevorgrayson/ionic,MeteorPackaging/ionic,abcd-ca/ionic,NandoKstroNet/ionic,eric-stanley/ionic,treejames/ionic,taraszerebecki/ionic,hotarzhang/ionic,MarcBT/ionic,cbmeeks/ionic,jee1mr/meteor-ionic,thiagofelix/ionic,willshen/ionic,eyalish/ionic,nraboy/ionic,trevorgrayson/ionic,CNVCrew/ionic,eyalish/ionic,Xeeshan94/ionic,buiphu/ionic,cleor41/meteor-ionic,wkrueger/ionic,jomaf1010/ionic,954053260/ionic,mallzee/ionic,shazhumao/ionic,leejeap/ionic,Xeeshan94/ionic,laispace/ionic,kylezhang/ionic,open-anesthesia/ionic,JackieLin/ionic,GeorgeMe/ionic,GeorgeMe/ionic,timtimUp/ionic,willshen/ionic,AmberWhiteSky/ionic,fanhaich/ionic,uidoyen/ionic,cbmeeks/ionic,xzyfer/ionic,thompsonemerson/ionic,leerduo/ionic,x303597316/ionic,blueElix/ionic,uus169/ionic,youprofit/ionic,janij/ionic,Drok1015/ionic,Drok1015/ionic,openbizgit/ionic,Testoni/ionic,MarcBT/ionic,zhiqiangli520210/ionic,AppGyver/ionic,nelsonsozinho/ionic,mallzee/ionic,fanhaich/ionic,leobetosouza/ionic,KholofeloMoyaba/atajo-ui,jasdeepkhalsa/ionic,openbizgit/ionic,youprofit/ionic,janij/ionic,fanhaich/ionic,shazhumao/ionic,ralic/ionic,yalishizhude/ionic,Nalinc/ionic,ahmadawais/ionic,glustful/ionic,zhonggaoyong/ionic,amitparrikar/ionic,RodrigoIbarraSanchez/ionic,hectoruch/ionic,r14r-work/fork_ionic_master,ctetreault/ionic,AmberWhiteSky/ionic,eyalish/ionic,buiphu/ionic,possan/ionic,CNVCrew/ionic,AlphaStaxLLC/ionic,Sourazou/login,sloops77/ionic,mingming1986/ionic,jgw96/ionic,astagi/ionic,uus169/ionic,awhedbee22/ionic,r14r/fork_ionic_master,hotarzhang/ionic,thompsonemerson/ionic,jgw96/ionic,hanmichael/ionic,blueElix/ionic,ngonzalvez/ionic,daew823/ionic,JsonChiu/ionic,cesarmarinhorj/ionic,LawrenceHan/ionic,leejeap/ionic,AppGyver/ionic,yanzhihong23/ionic-nono,janij/ionic,chrisbautista/ionic,contigo/ionic,htc550605125/ionic,jgw96/ionic,RodrigoIbarraSanchez/ionic,open-anesthesia/ionic,envistaInteractive/ionic,guaerguagua/ionic,Urigo/meteor-ionic,thompsonemerson/ionic,janglednerves/ionic,sthashree/ionic,jomaf1010/ionic,Sourazou/login,xuyuanxiang/ionic,lewisl9029/ionic,zhonggaoyong/ionic,AmberWhiteSky/ionic,Testoni/ionic,pargatsingh-webklabs/ionic,angrilove/ionic,Nalinc/ionic,fjzdjd/ionic,PaperMonster/ionic,zyaboutblank/ionic,ngonzalvez/ionic,puurinternet/ionic,chrisbautista/ionic,jvkops/ionic,yalishizhude/ionic,ddddm/ionic,ngonzalvez/ionic,r14r-work/fork_ionic,microlv/ionic,femotizo/ionic,EricCheung3/ionic,felipealbuquerq/ionic,GhostGroup/ionic,michaellourenco/ionic,EricCheung3/ionic,ralic/ionic,chinakids/ionic,michaellourenco/ionic,MJefferson/ionic,LawrenceHan/ionic,thiagofelix/ionic,openbizgit/ionic,jee1mr/meteor-ionic,brant-hwang/ionic,edparsons/ionic,PressReader/ionic,jamesdixon/ionic,yurtaev/ionic,envistaInteractive/ionic,WingGao/ionic,Xeeshan94/ionic,CNVCrew/ionic,huangsen0912/ionic,AlphaStaxLLC/ionic,deer-hope/ionic,jamesdixon/ionic,MJefferson/ionic,guaerguagua/ionic,NandoKstroNet/ionic,agyrafa/ionic,VinceOPS/ionic,zhengqiangzi/ionic,MartinMa/ionic,sloops77/ionic,jasdeepkhalsa/ionic,oabc124/ionic,Kryz/ionic,freedomdebug/ionic,jasdeepkhalsa/ionic,asfandiyark7/ionic,JsonChiu/ionic,jianganglu/ionic,TakayukiSakai/ionic,EricCheung3/ionic,promactkaran/ionic,abcd-ca/ionic,DurgaprasadPati/ionic,qzapaia/ionic,ptarjan/ionic,xzyfer/ionic,edwardchor/ionic,cnbin/ionic,staney7/ionic,csbz17027/ionic,MJefferson/ionic,Kryz/ionic,sitexa/ionic,n0b0dy897/ionic,lazamar/ionic,yanzhihong23/ionic-nono,VinceOPS/ionic,fangjing828/ionic,cleor41/meteor-ionic,ViniciusAugusto/ionic,ddddm/ionic,jvkops/ionic,ngonzalvez/ionic,tkh44/ionic,bewebltd/ionic,cnbin/ionic,MartinMa/ionic,q310550690/ionic,Flllexa/ionic,brant-hwang/ionic,open-anesthesia/ionic,ctetreault/ionic,shazhumao/ionic,AndyShiTw/ionic,PaperMonster/ionic,bewebltd/ionic,Nalinc/ionic,yurtaev/ionic,timtimUp/ionic,yalishizhude/ionic,jomaf1010/ionic,awhedbee22/ionic,johnli388/ionic,Baskmart/ionic,cbmeeks/ionic,cesarmarinhorj/ionic,tkh44/ionic,hanmichael/ionic,caiiiycuk/ionic,puurinternet/ionic,AndyShiTw/ionic,Nalinc/ionic,freedomdebug/ionic,urish/ionic,celsoyh/ionic,jgw96/ionic,AmberWhiteSky/ionic,SaadBinShahid/ionic,hotarzhang/ionic,thebigbrain/ionic,xuyuanxiang/ionic,leobetosouza/ionic,contigo/ionic,jvkops/ionic,Drok1015/ionic,zhonggaoyong/ionic,angrilove/ionic,emonidi/ionic,Drok1015/ionic,MrChen2015/ionic,AlphaStaxLLC/ionic,DurgaprasadPati/ionic,awhedbee22/ionic,treejames/ionic,RodrigoIbarraSanchez/ionic,edwardchor/ionic,deer-hope/ionic,ddddm/ionic,nelsonsozinho/ionic,lutrosis81/manup-app,fanhaich/ionic,csbz17027/ionic,r14r/fork_ionic_master,pargatsingh-webklabs/ionic,cleor41/meteor-ionic,asfandiyark7/ionic,huangsen0912/ionic,contigo/ionic,microlv/ionic,q310550690/ionic,sthashree/ionic,TakayukiSakai/ionic,pod4g/ionic,100goals/ionic,SobolevLexa/ionic,jayvi/ionic,jango2015/ionic,tkh44/ionic,jgw96/ionic,timtimUp/ionic,r14r-work/fork_ionic,michaellourenco/ionic,PaperMonster/ionic,willshen/ionic,5amfung/ionic,Gregcop1/ionic,caiiiycuk/ionic,nelsonsozinho/ionic,felipealbuquerq/ionic,xuyuanxiang/ionic,shazhumao/ionic,sthashree/ionic,celsoyh/ionic,johnli388/ionic,angrilove/ionic,zittix/ionic,caiiiycuk/ionic,JackieLin/ionic,glustful/ionic,felquis/ionic,amitparrikar/ionic,uidoyen/ionic,kylezhang/ionic,lazamar/ionic,lewisl9029/ionic