While experimenting with particles.js, I noticed that it runs smoothly on the Safari browser (I'm using a MacBook), but it encounters an error on Chrome and the particles fail to display.
Error pJS - XMLHttpRequest status: 404
particles.js:1558 Error pJS - File config not found
particles.js:1557 Error pJS - XMLHttpRequest status: 404
particles.js:1558 Error pJS - File config not found
Index.html
<div id="particles-js"></div>
<script type = "text/javascript" src="particles.js"></script>
<script type = "text/javascript" src="app.js"></script>
Styles.css
#particles-js {
position: absolute;
z-index: -10;
width: 100%;
height: 100%;
top: 0;
background: #000000;
}
In a separate file named app.js, I have all the settings for the particles.