[英]Apple Web App Startup Image Delay
Is there any way to make the start image delay? 有什么办法可以使开始图像延迟?
I have all the resolutions and images fine 我的所有分辨率和图像都很好
<head>
<link rel="apple-touch-startup-image" href="startup.png" />
<head>
But the image goes very fast, I wish I could make it appear longer, like 2/3 seconds. 但是图像运行得非常快,我希望可以使其看起来更长,例如2/3秒。 So the user can see it better.
因此用户可以更好地看到它。
Edit 编辑
After the answer from @Jens Kohl, I included a small sleep with PHP on the head section, just after the startup image link :) 在@Jens Kohl的回答之后,我在启动映像链接之后的头部分小睡了PHP。
It's working fine now 现在工作正常
<?php
sleep(2); //wait 2 seconds
?>
The startup image is not supposed to stall the user. 启动映像不应使用户停顿。 It's supposed to be a placeholder to cover up the startup time.
它应该是占位时间来掩盖启动时间。
That said, you could probably insert a wait/sleep JavaScript call inside your head-Tag. 也就是说,您可能会在head-Tag中插入一个等待/睡眠的JavaScript调用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.