【问题标题】:"Preload" apple-touch-precomposed-icon before adding to home screen?在添加到主屏幕之前“预加载”apple-touch-precomposed-icon?
【发布时间】:2012-04-23 21:22:06
【问题描述】:

有没有办法“预加载”apple-touch-precomposed-icon,以便在添加到主屏幕之前已经加载?就目前而言(据我所见),您从 Safari 中点击“添加到主屏幕”,它会使用页面的屏幕截图,直到下载图标。我认为这是为了在页面加载时保留带宽。

我试图将它作为img 包含在页面上,希望它被缓存,但这似乎不起作用。还有其他想法吗?

【问题讨论】:

  • 我也一直想知道这一点。即使你把它放在img 中,它似乎也没有缓存它似乎很奇怪...

标签: javascript html css ios mobile-safari


【解决方案1】:
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="http://www.tagebisweihnachten.ch/pictures/apple-touch-icon-57x57x.png" />
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="http://www.tagebisweihnachten.ch/pictures/apple-touch-icon-72x72x.png" />
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="http://www.tagebisweihnachten.ch/pictures/apple-touch-icon-114x114x.png" />
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="http://www.tagebisweihnachten.ch/pictures/apple-touch-icon-144x144x.png" />

设置 4 个不同大小的图标。您的 iDevice 选择图片并将其设置为 App-icon。

例如这是我的主页,我还在工作^^

【讨论】:

猜你喜欢
  • 2012-02-03
  • 2011-06-03
  • 1970-01-01
  • 2011-09-05
  • 2014-01-10
  • 1970-01-01
  • 2013-02-04
  • 2012-07-11
  • 1970-01-01
相关资源
最近更新 更多