3

What's the recommended location to upload CSS and JavaScript file to SharePoint?

Thanks

Sharan Piris
  • 491
  • 6
  • 19

2 Answers2

4

For CSS, the recommended location is The Style Library in the site collection

Note: Use the style library to store style sheets, such as CSS or XSL files. The style sheets in this gallery can be used by this site or any of its sub sites.

By the way, the Style Library has checked in/check out, unlike the Site Asset library.


For Javascript, the Style Library also can be used for this purpose, but it's preferred to put in _layout folder in case you have access to deploy it to the servers.

See more at

Mohamed El-Qassas MVP
  • 45,382
  • 9
  • 53
  • 96
3

The Site Assets folder usually, though they can live in any document library of your choosing.

The Site Assets folder should already have the correct permissions applied.

Greg W
  • 713
  • 3
  • 8
  • 1
    As M.Qassas has said, his is probably a better solution, and I said Site Assets when I meant style library. :( – Greg W Aug 05 '17 at 00:41