0
How to host my JS files online for private use ??? (yourjavascript.com) is not working
I want to upload my JS code file in a server a use it in by webpage as <script src="https://servername/main.js"> But i don't found the stuff that i want in Google so it request the sololearn user that if they know a free JS hosting website then Send me its link plzzz Because my project had large amount of course code in js and i want to split it and use it a clean and lite way
4 Answers
+ 2
jsDelivr is aĀ freeĀ public CDN for open-source projects.
https://www.jsdelivr.com/features
Cloudflare has a free plan too.
https://www.cloudflare.com/en-in/plans/
+ 1
@Abhay,
You don't need to sign in. Just push your code to github and use the cdn :
https://cdn.jsdelivr.net/gh/user/repo@version/file
here `user` should be replaced by your github username. `repo` should be replaced with name of your github repository. `@version` is optional but recommended. replace file by name of file that you want to use.
Read Github CDN section on this page https://www.jsdelivr.com/features
0
š®š³Omkarš But how to use them
Their is no sign up in jsdelivr.com
0
Thank you š®š³Omkarš for this sharing this working solution.
Following your easy instructions, I hosted my html table's sorttable.js script, publicly for the benefit of everyone, here: https://github.com/linuxguist/sorttable
Thanks & Best Regards,
Nathan S.R.