Icon font are rendered as squares on subsequent visits in Safari (iOS and OSX)

坚强是说给别人听的谎言 提交于 2019-12-30 10:45:48

问题


We're experiencing a weird problem with font icons. First couple of visit they load beautifully, but after a period of idle (usually around 24 hours) on subsequent visits they are replaced by squares. In Chrome, Firefox and even IE it works without problems.

When the problem is there I can see the CSS with the embedded font in the inspector but the font does not render. The CSS is cached and it feels like the font is evicted from the cache but never loaded again.

We have tried different ways of hosting, bootstrapcdn, our own CDN, and now fonticons.com. No real change. The really weird part is that the problem only arises after some time.

Anyone with a similar problem?

Site is www.mentimeter.com.

来源:https://stackoverflow.com/questions/30193615/icon-font-are-rendered-as-squares-on-subsequent-visits-in-safari-ios-and-osx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!