Most of our customizations to the master pages require some CSS or JavaScript (JS) references. CSS and JS files should be located in one of the following places:
In the SharePoint site inside the
_catalogs/masterpage
folder. This allows for the files to be included when exporting a design package.In the
_layouts
folder on the filesystems of the SharePoint servers. This is primarily accomplished with custom SharePoint solutions created with Visual Studio.On an external content source, such as a content delivery network.
Note
If you are using an external content source, ensure that all users accessing the SharePoint site have access to the external content source. The external content source may not be available to some users if their network configuration does not permit it.
When referencing files in the SharePoint site or in the _layouts
folder, relative URLs should be used to allow alternate access maps to work. When referencing...