I have downloaded the files
Downloaded dropbox
Uploaded the proper JS file into dropbox on my mac
right click, copy dropbox link
and it doesn’t work when I reference it in the script tag on my site. for the source file thing
It also doesn’t work if i edit the link and remove the stuff at the end so it just leaves it as the path /js file
Does anyone have any experience here doing this? Thanks!
Just save it as a text file (.txt extension) and upload to assets. Then include it like would any script where the source is the URI that you uploaded and the type=“text/javascript” and you will be all set.
Wondering if this worked for you @codyarsenault? Thanks for what seems like the obvious solution for this @webdev but I cannot seem to get things to work on my site. I’ve implemented the mixitup JS for filtering CMS content just fine but am having trouble doing so for the pagination. Any help or tips on this would be greatly appreciated. See preview link below:
Searchin for better ways to manage my js files. I use github to host my js files. But? webdev/Jeff S seems to be on to something!! Will try that. Thanks.
Jeff’s tip is a nice solution, if CORS is not important
Using github as a cdn is a bad idea though. Have a look at jsDelivr.com -
you can simply change the URL to your username and repo and it will cache it like a proper cdn wit correct header and stuff: https://cdn.jsdelivr.net/gh/user/repo@version/file