GitHub allows online users to share files but they cannot be directly loaded and executed. The solution to this ie for loading files such as JS and CSS is to load through RawGit. RawGit serves raw files directly from GitHub with proper Content-Type headers.
Steps:
First:- Sign up With GitHub
Second:- Creating a Repository on GitHub
Third:- Creating a GitHub Project to host JS and CSS files
Fourth:- Adding GitHub file or gist URL on RawGit for serving file on our Website.
REFERENCE:
https://www.bloggerspice.com/2016/09/host-JavaScript-and-CSS-files-on-gitHub-through-rawgit.html
No comments:
Post a Comment