• Resolved Imagemariosbikos

    (@mariosbikos)


    I created a custom JS file via your plugin but it seems that something goes wrong and when I load my page, each of the elements that use that JS comes back with 404 causing a huge delay in loading the site.

    Is something wrong with the path to javascript? What is the reason for this problem? Could it be that I tried to use some plugins that improve performance and affect JS files as well?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author ImageSilkyPress

    (@diana_burduja)

    On your website there is a CSS loaded with the Simple Custom CSS & JS plugin (first line is “div.VideoMaxWidth {“) and a JS (its second line is “$(‘.video-overlay’).on()”. Both seem to be correctly loaded.

    There is a script that gives a 404, but its URL seem to be wrong. I don’t know if the script content was added with the Simple Custom CSS & JS plugin, but the loading of the script is done from within the WPBakery page builder and not from the Simple Custom CSS & JS plugin.

    When editing the page with WPBakery open the first element after the title. There somehow the following line is added (see this screenshot):

    <script src="VideoResetPlayOnHover.js"></script>

    Whether you need to write the correct URL to the JS, or you need to delete this line.

Viewing 1 replies (of 1 total)

The topic ‘Getting 404 when trying to load custom JS’ is closed to new replies.