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

15th Sep 2020, 4:09 AM
Abhay
Abhay - avatar
4 odpowiedzi
+ 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/
15th Sep 2020, 4:24 AM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
+ 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
17th Sep 2020, 5:11 AM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
0
🇮🇳Omkar🕉 But how to use them Their is no sign up in jsdelivr.com
16th Sep 2020, 11:53 PM
Abhay
Abhay - avatar
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.
2nd Mar 2023, 7:35 AM
Nathan Sr
Nathan Sr - avatar