SharePoint Custom JS file Best Practice

后端 未结 4 561
故里飘歌
故里飘歌 2021-02-04 16:37

I made a custom master page. I also made a custom CSS file, which I uploaded to \"Style Library\". I link to this CSS file by:



        
4条回答
  •  梦如初夏
    2021-02-04 16:54

    You can store JS files in the _layouts folder, but storing them in the Style Library gives you workflow/change history for free.

    If you keep your JS files in the Style Library you can reference them in your MasterPage using the ~sitecollection token by using the tag, like so:

    
    

提交回复
热议问题