VincentGarreau / particles.js

A lightweight JavaScript library for creating particles
https://vincentgarreau.com/particles.js/
MIT License
28.72k stars 4.81k forks source link

particles.js does not load properly in the website #459

Open eqMFqfFd opened 3 years ago

eqMFqfFd commented 3 years ago

Hello!

I've been using particles.js for two years. I've just noticed recently that my website is stuck when I try to scroll down, I noticed particles.js didn't load. Particles.js stopped working all of sudden. It was working two years fine and I haven't edited anything in my website that could have caused that.

I had hired a web designer so I don't know very much how it's set up. I I no longer talk to my web designer so I tried to get other web devs fix it for me. I contacted 4 web devs, and nobody could help. Nobody can realize what isn't working. If you go to my website you can view the source code.

https://kenygamer.us.to/

I have followed all the steps, included the JS library, added the particles-jsreference to my body tag, nothing of what I do works.

allanmc commented 3 years ago

@kenygamer The problem is most likely that you try to include it directly from GitHub (in your html): https://raw.githubusercontent.com/VincentGarreau/particles.js/master/particles.min.js GitHub is not supposed to be a CDN like this, so they block it using CORS. Instead you should use the CDN suggested by particles.js: https://cdn.jsdelivr.net/npm/particles.js@2.0.0/particles.min.js

eqMFqfFd commented 3 years ago

@allanmc Your proposed solution doesn't solve the problem. Check here see what I'm trying to tell you.