• OceanWP’s main javascript functions (main.min.js) are attached using the deprecated

    $(document).on("ready", handler)

    instead of

    $(document).ready(handler)

    The jQuery documentation says:

    There is also $(document).on( “ready”, handler ), deprecated as of jQuery 1.8 and removed in jQuery 3.0. Note that if the DOM becomes ready before this event is attached, the handler will not be executed.

    When optimizing your OceanWP site for speed – which is extremely important for SEO reasons – this is exactly what happens: OceanWP functions are not attached in time and none of the OceanWP main javascript functions are executed. So, currently OceanWP actually prevents you from speeding up your website.

    Fortunately, there is a very simple fix to this bug: Just replace the deprecated .on(“ready”, handler) with .ready(handler). This will btw also remove the jQuery Migrate warnings in the Chrome Console.

    • This topic was modified 5 years, 2 months ago by Peroks.
    • This topic was modified 5 years, 2 months ago by Peroks.

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

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for the detailed information. We will check the issue and try to fix it in the future update of the OceanWP.

Viewing 1 replies (of 1 total)
  • The topic ‘Bug report: OceanWP javascripts don’t execute on fast pages’ is closed to new replies.