Html文件加载速度极慢。 [英] Html files loads extremely slow.

查看:344
本文介绍了Html文件加载速度极慢。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SharePoint 2013: 

SharePoint 2013: 

我在一个特定的网站集中遇到了一个非常奇怪的问题:  

I one particular site-collection we have a very strange problem:  

包含脚本链接的所有HTML文件通过Windows资源管理器加载速度非常慢,只要我们对脚本进行注释 - 链接HTML页面就像轻而易举地加载一样!?

All HTML-files containing script-links loads extremely slow via Windows Explorer, as soon as we out-comment the script-links the HTML-page loads like a breeze!?

看起来像某些函数尝试在尝试打开文件时尝试评估文件,并且执行速度非常慢。

It seem like some function tries to evaluate the files when trying to open it, and does it very slowly.

如果我们将文件重命名为.txt,我们没有问题?!

If we rename the files to .txt, we have no problems?!

什么可能导致这种奇怪的行为?

What can cause this weird behavior?

BR

Andreas R. Christensen

Andreas R. Christensen

推荐答案

嗨Andreas,

Hi Andreas,

我理解HTML文件中链接的一些JavaScript文件导致html文件加载缓慢。

I understand some JavaScript file linked in the HTML files caused that the html files load slowly.

当某些函数调用大数据或脚本函数中存在一些错误时,可能会发生此问题,您可以使用Browser Developer Tool跟踪html和脚本详细信息(F12):

This issue could happened when there is some function will call large data or there is some errors in the script function, you could trace the html and script details with Browser Developer Tool (F12):

脚本加载页面中的时间:

Script load time in the page:

检查控制台中的脚本错误:

Check errors of script in Console:

使用开发人员工具调试HTML和CSS

谢谢

最好的问候


这篇关于Html文件加载速度极慢。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆