This is my site:
I tested inside.
It asks "Js / jquery-1.7.1.min.js" to remove the render bar that blocks "js / jquery-1.7.1.min.js".
But I do not have this file anywhere in my site and all JS files are compressed and placed on the footer. I also postpone the loading of the page but nothing works, below is my rescue code:
& lt; Script type = "text / javascript" & gt; Function download JSAT () {var element = document.createElement ("script"); Element.src = "js / jquery-1.7.1.min.js"; Document.body.appendChild (element); } If (window.addEventListener) window.addEventListener ("load", downloadjet download, incorrect); Else if (window.attachEvent) window.attachEvent ("Onload", downloadJet download); And window Oload = Download the downloadjet; & Lt; / Script & gt;
Anyone can advise that why does the error appear even when the file is not found? thanks a lot.
HTML (index.php)
& lt ;; Doctype html & gt; & Lt; Html class = "no-js" lang = "en" & gt; & Lt; Top & gt; & Lt; Meta charset = "UTF-8" & gt; & Lt; Meta name = "viewport" content = "width = device-width, initial-scale = 1" & gt; & Lt; Title & gt; Pixel Marketing - Home & lt; / Title & gt; & Lt; Link rel = "stylesheet" href = "css / foundation.min.css" & gt; & Lt; / Head & gt; & Lt; Body id = "home" & gt; & Lt; Div class = "row fall" & gt; & Lt; Div class = "menu" & gt; & Lt ;? Includes php ('inc / menu.php'); ? & Gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt ;! - Content here - & gt; & Lt; Script src = "js / foundation.min.js" & gt; & Lt; / Script & gt; & Lt; Script & gt; $ (Document) .foundation (); & Lt; / Script & gt; & Lt; / Body & gt; & Lt; / Html & gt;
It seems that the path has not been provided correctly
Element.src = "js / jquery-1.7.1.min.js";
Either you type correctly
element.src = "full-path-to-jquery / jquery-1.7.1.min" Js ";
You can drag it from the CDN
element.src = "https://code.jquery.com/jquery-1.7.1.min Js ";
No comments:
Post a Comment