Home Forums WoodMart support forum Scripts to exclude from async/defer?

Scripts to exclude from async/defer?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #92975

    Joe
    Participant

    I am using cloudflare’s Rocket Loader to speed up my site. This speeds up websites with a lot of javascript by asynchronously loading the scripts.

    However, when I do so, I get a flash of the sidebar and cookie notice before the javascript is loaded and they get hidden.

    Cloudflare has an option to disable this feature for certain scripts… you just have to add data-cfasync=”false” to the scripts.

    My question is: which script controls the mobile sidebar and the cookie notice? I’m guessing it’s just woodmart/js/functions.min.js but I’d like to be sure.

    Thanks!

    #93004

    Artem Temos
    Keymaster

    Hi,

    It usually happens when you move CSS files to the footer. You need to keep all CSS files in the head.

    Regards

    #93057

    Joe
    Participant

    This is specifically in regards to JavaScript only.

    I’ll start with the theme functions js file and see if that works.

    #93069

    Artem Temos
    Keymaster

    Our theme scripts already in the footer so defer option does nothing with our theme scripts.

Viewing 4 posts - 1 through 4 (of 4 total)