Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html IE在网页上下载谷歌字体240秒?_Html_Css_Internet Explorer_Browser_Google Fonts - Fatal编程技术网

Html IE在网页上下载谷歌字体240秒?

Html IE在网页上下载谷歌字体240秒?,html,css,internet-explorer,browser,google-fonts,Html,Css,Internet Explorer,Browser,Google Fonts,仍然是一种新的修复网站相关的问题。我发现在IE 11中清除缓存并加载我的网站后,谷歌字体在我的网页最终加载前240秒下载。我包括图片: 有人能告诉我我做错了什么吗 谢谢大家! IE11在谷歌字体方面有一些问题,尤其是。您可以尝试以下解决方案: Web字体加载器:使用javascript而不是添加字体的默认方法(CSS方式)。它提供了一个通用接口来加载字体,而不考虑字体的来源,然后添加一组标准事件,您可以使用这些事件来控制加载体验。Web字体加载器能够从Google字体、Typekit、fonts

仍然是一种新的修复网站相关的问题。我发现在IE 11中清除缓存并加载我的网站后,谷歌字体在我的网页最终加载前240秒下载。我包括图片:

有人能告诉我我做错了什么吗


谢谢大家!

IE11在谷歌字体方面有一些问题,尤其是。您可以尝试以下解决方案:

  • Web字体加载器:使用javascript而不是添加字体的默认方法(CSS方式)。它提供了一个通用接口来加载字体,而不考虑字体的来源,然后添加一组标准事件,您可以使用这些事件来控制加载体验。Web字体加载器能够从Google字体、Typekit、fonts.com和Fontdeck加载字体,以及自托管Web字体。它是由谷歌Typekit共同开发的
  • 示例用法:

    <script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js"></script>
    <script>
      WebFont.load({
        google: {
          families: ['Droid Sans', 'Droid Serif']
        }
      });
    </script>
    

    在那篇文章中有很多解决这个问题的方法。您也可以检查它们。

    您想说加载您的网页需要240秒吗IE11@vkubre没错(总共244.4秒)。其他浏览器没有这个问题。当我刷新页面时,它会正常加载,但第一次查看总是在IE 11上花费240秒。你能发布到该站点的链接吗?@mlegg是的,当然
    $('head').append('<style></style>')
    
    3. [Error]: Element style not allowed as child of element div in this context. (Suppressing further errors from this subtree.)
    From line 162, column 5; to line 162, column 11
    ...
    
    5. [Error]: End tag "a" violates nesting rules.
    From line 463, column 3; to line 463, column 89
    <a href="https://nutikell.com/nutikellad/nutikell-westyx-king/" class="main-thumbnail">
    
    6. [Fatal Error]: Cannot recover after last error. Any further errors will be ignored.
    From line 463, column 3; to line 463, column 89
    
    <FilesMatch "\.(woff)$">
        Header unset Vary
    </FilesMatch>
    
    <FilesMatch "\.(eot)$">
        Header unset Vary
    </FilesMatch>