Skip to content Skip to sidebar Skip to footer

Jquery Load Function Not Referring Master Page Script Files

I am using jquery load function in my application's masterpage.html and it is working fine. But the problem is i need to put Jquery.min.js in all my content pages in order to use j

Solution 1:

No, it is not possible . You have to include it in all pages where you are using jquery

Instead of referring to the url like below ,

<scriptsrc="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js">

You can download the jquery library to your project path and use it like

<scriptsrc="project_name/folder_name/jquery.min.js">

But it is compulsory to include jquery in all pages

Hope this helps !!

Solution 2:

I can't give you a best answer, these is my advice

  1. the jQuery file had better include at the bottom in body tag.
  2. If you use the jQuery,you must include it.

Post a Comment for "Jquery Load Function Not Referring Master Page Script Files"