I have used the particle JS CDN from here (https://vincentgarreau.com/particles.js/#default) and I have managed to integrate it in my project and it works on the localhost.
However when I upload it on the server it doesn't work anymore.
These are the CDNs:
<script src="http://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script> <script src="http://threejs.org/examples/js/libs/stats.min.js"></script>
I then added the particles in my index.html page:
<div id="particles-js"></div>
I linked my index.html to the particles.js file:
<script src="particles.js"></script>
I added the styling in my style.css file:
/* Particles */
canvas{
display: block;
vertical-align: bottom;
}
/* ---- particles.js container ---- */
#particles-js{
position:absolute;
width: 100%;
height: 900px;
}
Why is it not displaying when it is uploaded onto the host?