手里的项目,登录页面在IE下首次进入页面非常的慢,应该不只是登录页面,因为项目我也是半路接手的.开始以为是js的问题,后台把所有的代码都去掉,就一个空白的页面,然后慢慢的试试,最后才发现是一个CSS文件引起的,

在common.css中引用了一个在线的字体路径 'https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700',罪魁祸首就是这个

/* Include variables for LESS */
/* Import file styles */
@import'https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700';
@import url(../fonts/font-awesome/css/font-awesome.min.css);
@import url(../plugin/bootstrap/css/bootstrap.min.css);
@import url(../plugin/nprogress/nprogress.css);body,
html {position: relative;height: 100%;background: #f5f7fa;color: #505458;font-family: "微软雅黑";font-size: 14px
}

那个在线练级打开是这些代码,应该是字体图标,我用不到.

/* devanagari */
@font-face {font-family: 'Poppins';font-style: normal;font-weight: 300;src: local('Poppins Light'), local('Poppins-Light'), url(https://fonts.gstatic.com/s/poppins/v5/pxiByp8kv8JHgFVrLDz8Z11lFc-K.woff2) format('woff2');unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
}/* latin-ext */
@font-face {font-family: 'Poppins';font-style: normal;font-weight: 300;src: local('Poppins Light'), local('Poppins-Light'), url(https://fonts.gstatic.com/s/poppins/v5/pxiByp8kv8JHgFVrLDz8Z1JlFc-K.woff2) format('woff2');unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}/* latin */
@font-face {font-family: 'Poppins';font-style: normal;font-weight: 300;src: local('Poppins Light'), local('Poppins-Light'), url(https://fonts.gstatic.com/s/poppins/v5/pxiByp8kv8JHgFVrLDz8Z1xlFQ.woff2) format('woff2');unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}/* devanagari */
@font-face {font-family: 'Poppins';font-style: normal;font-weight: 400;src: local('Poppins Regular'), local('Poppins-Regular'), url(https://fonts.gstatic.com/s/poppins/v5/pxiEyp8kv8JHgFVrJJbecmNE.woff2) format('woff2');unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
}/* latin-ext */
@font-face {font-family: 'Poppins';font-style: normal;font-weight: 400;src: local('Poppins Regular'), local('Poppins-Regular'), url(https://fonts.gstatic.com/s/poppins/v5/pxiEyp8kv8JHgFVrJJnecmNE.woff2) format('woff2');unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}/* latin */
@font-face {font-family: 'Poppins';font-style: normal;font-weight: 400;src: local('Poppins Regular'), local('Poppins-Regular'), url(https://fonts.gstatic.com/s/poppins/v5/pxiEyp8kv8JHgFVrJJfecg.woff2) format('woff2');unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}/* devanagari */
@font-face {font-family: 'Poppins';font-style: normal;font-weight: 500;src: local('Poppins Medium'), local('Poppins-Medium'), url(https://fonts.gstatic.com/s/poppins/v5/pxiByp8kv8JHgFVrLGT9Z11lFc-K.woff2) format('woff2');unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
}/* latin-ext */
@font-face {font-family: 'Poppins';font-style: normal;font-weight: 500;src: local('Poppins Medium'), local('Poppins-Medium'), url(https://fonts.gstatic.com/s/poppins/v5/pxiByp8kv8JHgFVrLGT9Z1JlFc-K.woff2) format('woff2');unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}/* latin */
@font-face {font-family: 'Poppins';font-style: normal;font-weight: 500;src: local('Poppins Medium'), local('Poppins-Medium'), url(https://fonts.gstatic.com/s/poppins/v5/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2) format('woff2');unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}/* devanagari */
@font-face {font-family: 'Poppins';font-style: normal;font-weight: 600;src: local('Poppins SemiBold'), local('Poppins-SemiBold'), url(https://fonts.gstatic.com/s/poppins/v5/pxiByp8kv8JHgFVrLEj6Z11lFc-K.woff2) format('woff2');unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
}/* latin-ext */
@font-face {font-family: 'Poppins';font-style: normal;font-weight: 600;src: local('Poppins SemiBold'), local('Poppins-SemiBold'), url(https://fonts.gstatic.com/s/poppins/v5/pxiByp8kv8JHgFVrLEj6Z1JlFc-K.woff2) format('woff2');unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}/* latin */
@font-face {font-family: 'Poppins';font-style: normal;font-weight: 600;src: local('Poppins SemiBold'), local('Poppins-SemiBold'), url(https://fonts.gstatic.com/s/poppins/v5/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2) format('woff2');unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}/* devanagari */
@font-face {font-family: 'Poppins';font-style: normal;font-weight: 700;src: local('Poppins Bold'), local('Poppins-Bold'), url(https://fonts.gstatic.com/s/poppins/v5/pxiByp8kv8JHgFVrLCz7Z11lFc-K.woff2) format('woff2');unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
}/* latin-ext */
@font-face {font-family: 'Poppins';font-style: normal;font-weight: 700;src: local('Poppins Bold'), local('Poppins-Bold'), url(https://fonts.gstatic.com/s/poppins/v5/pxiByp8kv8JHgFVrLCz7Z1JlFc-K.woff2) format('woff2');unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}/* latin */
@font-face {font-family: 'Poppins';font-style: normal;font-weight: 700;src: local('Poppins Bold'), local('Poppins-Bold'), url(https://fonts.gstatic.com/s/poppins/v5/pxiByp8kv8JHgFVrLCz7Z1xlFQ.woff2) format('woff2');unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

去掉这个就不那么慢了,这是半路接手项目的坑,之前的前端已经离职,然后我来接手

转载于:https://www.cnblogs.com/ybixian/p/10235539.html

ie下,首页打开页面非常慢相关推荐

  1. 35dir分类目录为什么打开页面非常慢?

    最近发现自己的网站(www.yqfml.com)在打开其中一个页面时非常慢,而打开其他页面却非常快,一直没找到原因所在.怎么解决?用的是35dir分类目录.

  2. h5首页加载慢_近期iOS打开H5页面非常慢的原因

    事件由来 如果最近发现iOS APP打开h5非常慢,达到5秒以上,而安卓又正常,如果刚好你又是使用了Let's Encrypt 的免费SSL服务,恭喜你,你可能是一位运营商干扰的受害者. 有一群吃瓜群 ...

  3. 从qq或微信上打开页面链接,直接跳转到360首页

    开机后发现从QQ或微信上打开页面链接时,总是跳转到360首页 解决方法 打开安全防护中心 选择浏览器防护体系 点击默认浏览器防护 进行主页修改 完成这4步,问题就可以成功解决.

  4. 如何设定打开页面的大小

    〈body οnlοad="top.resizeTo(300,200);"〉 打开页面的位置〈body οnlοad="top.moveBy(300,200);" ...

  5. html 打开页面光标自动选中输入框_初识selenium之web自动化

    今天我们学习下如何使用python编写web自动化,谈到web自动化,那么我们需要了解下市面上做web自动化的几种方式,Robotframework工具,网红WebUI自动化测试神器 - Cypres ...

  6. 【uniapp】 下拉刷新页面

    前言 Hbuilder X 2.7.14.20200618 (不清楚uniapp的版本,用工具版本代替) 关于怎么拉:对于下拉还是上拉我是分不清的(不管叫下拉还是上拉,都应该有参照物的.在不说参照物的 ...

  7. 记一次Selenium框架的爬虫遇到下拉框页面的解决经历

    背景 最近有一个项目需要使用爬虫从某网站抓取全国的医院名称,等级,地址等信息 爬取的url为https://some/website/that/i/can/tell/you/sorry 用浏览器打开这 ...

  8. 京东首页之页面顶部、Logo搜索框

    京东首页之页面顶部.Logo&搜索框 昨天我们主要讲了京东首页的基本布局,今天我们主要来逐步实现京东首页的页面顶部.Logo&搜索框.首先我们来看下我们今天将要实现的效果: 下面页面布 ...

  9. MacOS深色模式下微信文章页面背景变为黑色问题的解决

    由于长期伏案,颈椎问题比较严重,所以平时都尽量减少低头看手机的时间,也就养成了用浏览器看各种读物的习惯,其中就包括公众号文章.最近不知道从哪一天开始,突然发现公众号文章的背景突然变成了黑色. 就像这样 ...

最新文章

  1. python unsupported operand type(s) for /: 'str' and 'str' can only concatenate str (not int) to s
  2. 2016年工作中遇到的问题31-40
  3. mphil in engineering最后颁发的学位是
  4. CentOS下的Mysql的安装和使用
  5. mysql语句随机数_程序生成随机数与SQL语句生成随机数
  6. 以太网接口MII,RMII,SMII,GMII总线接口简介
  7. 20190823:(leetcode习题)实现 strStr()
  8. AI产品开发的核心原则:以研究为核心驱动
  9. Bailian3721 和数【标记】
  10. Ext Scheduler(日程表) 2.0——升级到4.0
  11. 多线程异常处理【转】
  12. ffmpeg将文件转码后推向服务器,FFMPEG转码部署实例 - SRS Wiki 中文文档
  13. http请求过程及性能优化分析
  14. 安装 adobe 软件 photoshop 遇到 81错误 mac
  15. swoft框架,开发遇到基本坑
  16. Packetdrill(网络协议测试工具)
  17. 开启xmp1还是2_“吃鸡”新版本倒计时1天,2个经典模式升级回归,老玩家泪目了!...
  18. jzxx1177买蛋糕II
  19. Nancy和ASP.NET MVC的简单对比
  20. 剖析网页游戏前景 三大趋势或助其健康发展

热门文章

  1. 白鹭引擎能用java吗_白鹭引擎开发3D项目(一)
  2. 转贴 银行业的系统集成商
  3. 收购高通不成,又并购CA,这家公司到底有多少钱?
  4. oracle 10g ins_rdbms.mk,10.2 for linux的安装又出现了这个ins_rdbms.mk的错误
  5. 通过zabbix监控网络设备(深信服防火墙)
  6. 算法讲解:ac自动机及简单衍生
  7. Linux中Oracle下DG主从备份----DG环境搭建
  8. EOS系列 - 超级节点(BP)列表更新流程
  9. 从windows换到Linux Mint(二)——Linux干啥都得装软件!windows还是香啊!
  10. 2020年下半年信息系统监理师上午真题及答案解析