particlesJS.load('fancy-particles', '_static/particles.json', null);

$(document).ready(function() {
  if ($("#fancy-particles").length) {
    particlesJS.load('fancy-particles', '_static/particles.json', null);
  }
});

Load particles after DOM finishes.
Load particles after DOM finishes.
