• I attached the website.
    Whenever you open the website it loads first and then disappear for a second and loads again. I don’t know what is causing this issue but it is very annoying.
    Any advices what can be the problem?
    When you open the website you can see it pop up for a second, disappear and then loads correctly…

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Tyler

    (@tylerthedude)

    Hi there,

    It looks like this may be happening due to the caching on the site. I’m receiving this error in the JS console when accessing the page:

    Uncaught TypeError: $(...).flexslider is not a function
        at autoptimize_single_faaaa3934096c19bf703ada62e5c7bbc.js:56
        at autoptimize_single_faaaa3934096c19bf703ada62e5c7bbc.js:58

    It looks like this belongs to an autoptimize plugin. I’d recommend clearing out the cache belonging to the plugin, and see if this behavior stops and the error goes away. However, if the error persists, then you will want to reach out to the plugin developers as something’s preventing jQuery from running properly when used by the plugin.

    Regards,
    Tyler

    pro-tip; you can disable Autoptimize on a per-request basis by adding ?ao_noptimize=1 to the URL to test the impact of Autoptimize on this issue.

    If the problem is not there in that case, try to identify what in AO is causing this by just disabling CSS or JS or HTML or Image optimization (incl. lazyload).

    Once you know that, dive in and try identify what code/ files (CSS or JS) are responsible for the broken feature and try excluding that.

    If the problem is with JS, chances are you’ll find useful information on your browser’s developer console.

    There’s more info in the troubleshooting tips and info on exclusions in the AO FAQ.

    hope this helps,
    frank

    Thread Starter haidepzai

    (@haidepzai)

    Hello,

    thank you for the responses!
    I think it is something with JS!
    In the Autoptimize Plugin if I merge all JS files into one the problem is gone but my website looks very terrible, so I do not activate that function.
    Anyway it’s not the problem of plugins because if I deactivate them, nothing change, so I guess it’s something with JS, any advices on what should I do next?

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Website always loading twice’ is closed to new replies.