大部分时间不加载我的外部JavaScript

大部分时间不加载我的外部JavaScript,javascript,jquery,angularjs,node.js,mongodb,Javascript,Jquery,Angularjs,Node.js,Mongodb,我的网站有问题。我用Node、Express、MongoDB和Angular创建了我的网站。这个很好用。现在我想使用一些JavaScript函数,并创建了一个外部JavaScript文件。在Chrome中,JavaScript函数工作正常,但当我尝试Mozilla浏览器或Mozilla、Chrome或Safari的移动版本时,它通常不会加载我的JavaScript文件。有时的确如此。我尝试过改变jade文件中脚本的顺序,也排除了一些其他脚本,但似乎无法找出问题所在。是scripts.js文件不起

我的网站有问题。我用Node、Express、MongoDB和Angular创建了我的网站。这个很好用。现在我想使用一些JavaScript函数,并创建了一个外部JavaScript文件。在Chrome中,JavaScript函数工作正常,但当我尝试Mozilla浏览器或Mozilla、Chrome或Safari的移动版本时,它通常不会加载我的JavaScript文件。有时的确如此。我尝试过改变jade文件中脚本的顺序,也排除了一些其他脚本,但似乎无法找出问题所在。是scripts.js文件不起作用

这是我的Jade文件,由Express渲染:

html
  head
    meta(charset="UTF-8")
    meta(name="viewport" content="width=device-width, initial-scale=1.0")
    <!-- CSS  -->
    <!-- load bootstrap & font awesome -->
    link(rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css")
    link(rel="stylesheet" type="text/css" href="/stylesheets/slick.css")
    link(rel="stylesheet" type="text/css" href="/stylesheets/slick-theme.css")
    link(rel="stylesheet" href="/stylesheets/font-awesome.css")
    link(rel="stylesheet" href="/stylesheets/grid.css")
    link(rel="stylesheet" href="/stylesheets/styles.css")
    link(rel="stylesheet" href="/stylesheets/nav.css")
    link(rel="stylesheet" href="/stylesheets/responsive.css")
    link(rel="stylesheet" href="/stylesheets/colors.css")
    link(rel="stylesheet" href="/stylesheets/slicknav.css")

    <!-- JS  -->
    <!-- load angular, ngRoute, ngAnimate  -->
    script(type="application/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.3/angular.min.js")
    script(type="application/javascript" src="//ajax.googleapis.com/ajax/libs/angularjs/1.6.3/angular-route.js")
    script(type="application/javascript" src="http://ajax.googleapis.com/ajax/libs/angularjs/1.6.3/angular-animate.js")
    script(type="application/javascript" src="/javascripts/jquery-3.2.0.min.js")
    script(type="application/javascript" src="/javascripts/jquery-ui.min.js")
    script(type="application/javascript" src="/javascripts/app.js")
    script(type="application/javascript" src="/javascripts/controller.js")
    script(type="application/javascript" src="/javascripts/jquery.slicknav.min.js")
    script(type="application/javascript" src="/javascripts/slick.js")
    script(type="application/javascript" src="/javascripts/scripts.js")
    base(href="/")

body(ng-app="loodgietersApp" ng-controller="MainCtrl")

   div(id="fb-root")
   script.
     (function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      fjs.parentNode.insertBefore(js, fjs);
  }(document, 'script', 'facebook-jssdk'));

  window.___gcfg = {lang: 'nl'};
  (function() {
   var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
   po.src = 'https://apis.google.com/js/platform.js';
   var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
   })();

div(class="app-container")
  div(ng-include="'partials/includes/nav-bar-desktop.html'")
  div(class="slider-image")
    div(class="call-us")
      span(class="phone-icon fa fa-phone fa-3x")
      span(class="phonenumber")
        span Bel gratis: 0800 - 2400 000
      span(class="available")
        span 24/7 bereikbaar

    div(class="logo")
      a(href="/")
        img(src="/images/loodgieters-logo.png" alt="loodgieter-logo")
      div(ng-include="'partials/includes/nav-bar-mobile.html'")

  div(ng-include="'partials/includes/usps.html'")

  div(ng-include="'partials/includes/search-plumber.html'")
  div(class="box")
    div(class="page-animate page" ng-view)

div(ng-include="'partials/includes/twitter-box.html'")

div(class="container")
  div(ng-include="'partials/includes/brands.html'")
  div(ng-include="'partials/includes/specialisations.html'")

div(ng-include="'partials/includes/footer.html'")
html
头
meta(charset=“UTF-8”)
meta(name=“viewport”content=“width=设备宽度,初始比例=1.0”)
链接(rel=“stylesheet”href=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css")
链接(rel=“stylesheet”type=“text/css”href=“/stylesheets/slick.css”)
链接(rel=“stylesheet”type=“text/css”href=“/stylesheets/slick theme.css”)
链接(rel=“stylesheet”href=“/stylesheets/font-awesome.css”)
链接(rel=“stylesheet”href=“/stylesheets/grid.css”)
链接(rel=“stylesheet”href=“/stylesheets/styles.css”)
链接(rel=“stylesheet”href=“/stylesheets/nav.css”)
链接(rel=“stylesheet”href=“/stylesheets/responsive.css”)
链接(rel=“stylesheet”href=“/stylesheets/colors.css”)
链接(rel=“stylesheet”href=“/stylesheets/slicknav.css”)
脚本(type=“application/javascript”src=”https://ajax.googleapis.com/ajax/libs/angularjs/1.6.3/angular.min.js")
脚本(type=“application/javascript”src=“//ajax.googleapis.com/ajax/libs/angularjs/1.6.3/angularRoute.js”)
脚本(type=“application/javascript”src=”http://ajax.googleapis.com/ajax/libs/angularjs/1.6.3/angular-animate.js")
脚本(type=“application/javascript”src=“/javascripts/jquery-3.2.0.min.js”)
脚本(type=“application/javascript”src=“/javascripts/jquery ui.min.js”)
脚本(type=“application/javascript”src=“/javascripts/app.js”)
脚本(type=“application/javascript”src=“/javascripts/controller.js”)
脚本(type=“application/javascript”src=“/javascripts/jquery.slicknav.min.js”)
脚本(type=“application/javascript”src=“/javascripts/slick.js”)
脚本(type=“application/javascript”src=“/javascripts/scripts.js”)
基本(href=“/”)
正文(ng app=“loodgietersApp”ng controller=“MainCtrl”)
div(id=“fb root”)
剧本
(功能(d、s、id){
var js,fjs=d.getElementsByTagName[0];
if(d.getElementById(id))返回;
js=d.createElement;js.id=id;
fjs.parentNode.insertBefore(js,fjs);
}(文档“脚本”、“facebook jssdk”);
窗口。uuuugcfg={lang:'nl'};
(功能(){
var po=document.createElement('script');po.type='text/javascript';po.async=true;
po.src=https://apis.google.com/js/platform.js';
var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(po,s);
})();
div(class=“应用程序容器”)
div(ng include=“'partials/includes/nav bar desktop.html')
div(class=“滑块图像”)
部门(class=“呼叫我们”)
span(class=“手机图标fa手机fa-3x”)
span(class=“phonenumber”)
免费电话:0800-2400000
span(class=“可用”)
跨度24/7 bereikbaar
部门(class=“logo”)
a(href=“/”)
img(src=“/images/loodgieters logo.png”alt=“loodgieter logo”)
div(ng include=“'partials/includes/nav bar mobile.html')
div(ng include=“'partials/includes/usps.html]”)
div(ng include=“'partials/includes/search plumber.html]”)
div(class=“box”)
div(class=“页面动画页面”ng视图)
div(ng include=“'partials/includes/twitter-box.html]”)
div(class=“容器”)
div(ng include=“'partials/includes/brands.html]”)
div(ng include=“'partials/includes/specializations.html]”)
div(ng include=“'partials/includes/footer.html]”)

document.head.append(po)有没有试过我没有得到任何错误。这根本不起作用,我没试过。我如何使用它?这个问题对Mozilla来说是永久性的还是突然的?