From the course: SharePoint Advanced: Enhancing Functionality with JavaScript

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

JavaScript is already integrated in SharePoint

JavaScript is already integrated in SharePoint

- [Instructor] Something that you may not be aware of is that JavaScript is already fairly well integrated into SharePoint. Now, originally this wasn't true, and it caused some extra work and possible issues. One of the tricks about JavaScript, as I mentioned before, typically each script is a separate JS file. Now, these can be stored individually on a site, or stored in a library collection, jQuery, which we'll talk about later, is such a collection. In either case, unless you want to edit every page in your site to include whatever JavaScript you intend to use there, SharePoint needs to reference the files or the library. Now, one method is to alter the site master page to include the reference. Actually, you edit a copy of the master, and make it the new master, which prevents it from being overridden by Microsoft updates. Microsoft frowns on this solution. They absolutely do not want people altering master pages since it can mess up updates and releases. It also more or less…

Contents