我正在V1中构建一个Ionic应用程序。
我想将应用启动延迟减少到1或2秒。即使没有任何延迟,我也会好起来,因为我不希望任何闪屏显示。
在config.xml中尝试了所有解决方案,例如--prod, - aot,splashscreen preferences。
请告诉我是否可以这样做。
答案 0 :(得分:0)
查看启动画面插件的文档
https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-splashscreen/
您可以在config.xml中设置这些首选项
SplashScreenDelay(数字,默认为3000)。在自动隐藏启动画面之前等待的时间(以毫秒为单位)。
<preference name="SplashScreenDelay" value="3000" />
要禁用启动画面,请将以下首选项添加到config.xml:
<preference name="SplashScreenDelay" value="0"/>