在第一次查看网站时,网站格式搞砸了。刷新修复

时间:2015-02-21 01:41:08

标签: jquery html fullpage.js

所以我遇到了一些问题,我认为这与我的文件在我的标题中的加载方式有关。我目前正在使用fullpage.js插件。

当我第一次访问该网站(非缓存)时,它看起来是错误的。然而,刷新后,相同的混乱格式开始加载一秒钟然后我的预加载器启动并且我的网站工作?请参阅下面的图片,了解初始视图的外观。请注意,它目前仅针对Chrome开发......

Messed up Formatting - initial view

加载后刷新主页的样子......

enter image description here

以下是网站网址:http://carrotcrunchpvp.comule.com/为您自己复制问题。

在我的控制台中,它说:

fullpage_initialisation.js:2个
未捕获的TypeError:undefined不是函数

此文件的链接是:http://carrotcrunchpvp.comule.com/js/fullpage_initialisation.js

但是我已经关注了fullpage.js github上的格式,一切似乎都运行正常。我希望网站首次正常加载而不必刷新,我很难过。我和头脑一起玩过。订单无济于事

这是头条代码:



<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="initial-scale=1.0">
  <title>Catholic Professional Standards</title>

  <link href="plugins/fullpage/jquery.fullPage.css" rel="stylesheet" type="text/css">
  <link href="styles.css" rel="stylesheet" type="text/css">
  <link href="media-queries.css" rel="stylesheet" type="text/css">
  <link href="http://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css">
  <link href="http://fonts.googleapis.com/css?family=Droid+Serif" rel="stylesheet" type="text/css">
  <link href="http://fonts.googleapis.com/css?family=Montserrat:700" rel="stylesheet" type="text/css">
  <link href="http://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet" type="text/css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
  <script src="plugins/fullpage/jquery.fullPage.js" type="text/javascript"></script>
  <script src="js/fullpage_initialisation.js" type="text/javascript"></script>
  <script src="js/main.js" type="text/javascript"></script>



</head>
&#13;
&#13;
&#13;

非常感谢任何帮助!

1 个答案:

答案 0 :(得分:0)

事实证明问题出在我的网站托管公司 - webhost 000.当我使用免费域名托管包时,他们将广告捆绑到与我的代码混淆的网站。 将我的网站转移到Byethost修复了一切。此外,他们根本不整合广告。对他们印象非常深刻。

克里斯