load script when divi edit mode not used

PHOTO EMBED

Tue Oct 26 2021 14:41:45 GMT+0000 (Coordinated Universal Time)

Saved by @jimmy.samaan #javascript

<script type="text/javascript">
  jQuery(document).ready(function() {
    if (window.location.href.indexOf("?et_fb=1&PageSpeed=off") == -1) {
     jQuery.getScript("../wp-content/custom_code/scripts.js");
    }
  });
</script>
content_copyCOPY