简体   繁体   English

网页无法仅在ios9野生动物园浏览器中加载

[英]webpage not loading only in ios9 safari browser

I am facing one problem for rendering some of my webpages in iOS 9 safari browser. 我在iOS 9野生动物园浏览器中呈现某些网页时遇到一个问题。 these pages are not rendering at all in this browser but the same pages are working fine for desktop and other devices browser including IOS 8 and below. 这些页面根本无法在此浏览器中呈现,但相同的页面对于台式机和其他设备浏览器(包括IOS 8及更低版本)可以正常工作。

what are the difference between iOS 8 safari and iOS 9 safari? iOS 8野生动物园和iOS 9野生动物园有什么区别? what coud be the solution for this issue? 该问题的解决方案是什么? how to debug this issue? 如何调试这个问题? do anybody faced this problem already? 有人已经遇到这个问题了吗?

here we are using ractiveJs frontend templating (legacy version for IE support) and related json data is being fetched by Ajax call. 在这里,我们使用ractiveJs前端模板(用于IE支持的旧版本),并且相关的json数据正在通过Ajax调用获取。 Jquery and some additional JavaScript library are included here. jQuery和一些其他JavaScript库包含在这里。

Please refer attached image for memory usage 请参考所附图片以了解内存使用情况

This is a known problem with Ractive on iOS 9, so far up to 9.2. 这是iOS 9上Ractive的一个已知问题,到目前为止一直到9.2。 The problem is with large templates which runs into a memory leak in Safari. 问题在于大型模板会在Safari中导致内存泄漏。 An issue was opened for this but it has since been closed without providing a fix. 为此打开了一个问题 ,但此后已关闭,但未提供修复程序。 Instead the Ractive team is waiting for Apple to fix Safari, although I haven't been able to find any mention that Apple will do such a thing. 相反,Ractive团队正在等待苹果公司修复Safari,尽管我没有发现有人提到苹果公司会这样做。

You have a couple of choices to work around this problem: 您有两种选择来解决此问题:

  • Split large templates into multiple partials . 将大型模板拆分为多个部分
  • Pre-parse your template. 准备模板。 I don't know how to do this but you could start by reading some of the responses to the issue I linked to. 我不知道该怎么做,但是您可以先阅读一些有关我所链接问题的回复。 You can get the parser code from here . 您可以从此处获取解析器代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM