bootstrap less在加载内容之前会使页面闪烁吗?

时间:2017-07-16 18:01:17

标签: javascript php jquery html twitter-bootstrap

我正在使用php,bootstrap,html,jquery在本地主机上设计一个网站一切正常,直到我添加bootstrap减去它仍在工作但现在如果我刷新页面或在页面加载之前转到另一个页面就像一个闪存喜欢它显示一个空白的屏幕,然后加载内容,在我添加少一切都很酷它加载就像任何其他网站现在它像一个延迟,任何可以帮助我解决这个问题?

当我使用常规的twitter bootstrap时,页面加载很好,仅使用bootstrap less

<!-- Bootstrap -->
<link rel="stylesheet" href="css/style_template.css?v=2" type='text/css'>
<link href="../bootstrap/less/bootstrap.less" rel="stylesheet/less">

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="https://code.jquery.com/jquery-3.1.0.js"></script>
<script src="http://js.pusher.com/3.0/pusher.min.js"></script>

  <!-- Include all compiled plugins (below), or include individual files as needed -->
  <script src="../bootstrap/js/bootstrap.min.js"></script>
  <script src="../bootstrap/js/less.min.js"></script>
  <script src="js/custom.js" type="text/javascript">

  </script>

0 个答案:

没有答案