Streaming live at 10am (PST)

Host .js on jsdelivr doesn't work

I tried to embed code to Webflow, it showed me the code is too long,

Then I host the .js on a GitHub repository and CDN it via JSdeliver. but it’s doesn’t work
Here is the GitHub link which works well
https://raw.githubusercontent.com/joshuazhangk/gradient/main/gradient.js

The host link below doesn’t work
https://cdn.jsdelivr.net/gh/joshuazhangk/gradient/main/gradient.js

Does anyone know how to fix it? Thank you


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

@11163 it is because you are referencing the script tags within your js file. You need to remove those tag to properly fetch the js file.

I just deleted script tag, but still doesn’t work …
Which part is still not correctly?
Thank you very much
https://raw.githubusercontent.com/joshuazhangk/gradient/main/gradient.js

https://cdn.jsdelivr.net/gh/joshuazhangk/gradient/main/gradient.js

JSdeliver probably cached your previous script. Try delete your github script, and reupload a new file with a different name. Then JSdeliver it again.