【问题标题】:Running iframe with large application in background without affecting main application,在后台运行带有大型应用程序的 iframe 而不会影响主应用程序,
【发布时间】:2017-04-12 05:41:28
【问题描述】:

当前正在处理的应用程序需要在应用程序初始化期间使用 iframe 在应用程序内加载另一个应用程序。我们能够在应用程序初始化期间正确加载 Iframe 中的另一个应用程序,但在加载期间同时加载这两个应用程序会导致应用程序加载速度非常慢并且页面会冻结一段时间。

我们发现的问题: 我们在 Iframe 中加载的应用程序发送大量 http 请求,它阻塞了我们的应用程序。 (浏览器中每个实例有更多 6 个请求)

有什么方法可以在 iframe 中使用 webworker 或多线程环境中的任何其他技术加载应用程序。

【问题讨论】:

    标签: javascript html angularjs html5-canvas web-worker


    【解决方案1】:

    iFrame 通常与主页面在同一线程/进程中运行。

    请阅读-> Execute web worker from different origin

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-06-02
      • 2014-01-10
      • 2011-09-11
      • 2019-12-27
      相关资源
      最近更新 更多