• Resolved cag8f

    (@cag8f)


    Hello. I am using Elementor for the first time, to design one specific page on my site. I see that on every other page (including my home page), when I load the front-end of the page in my browser, the browser still downloads several Elementor assets (stylesheets and scripts). Is there a way to prevent those pages from doing that, and ensure only the page in-question downloads those assets?

    Thanks in advance.

    • This topic was modified 5 years, 2 months ago by cag8f.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Please log out and view the site as a normal visitor would. You may be seeing those assets because you are a logged in user.

    You may be able to use the information at https://docs.elementor.com/article/286-speed-up-a-slow-site if needed, but Elementor shouldn’t be loading any assets that aren’t needed on the page.

    Thread Starter cag8f

    (@cag8f)

    OK that’s interesting. In my original test, I was logged in to WordPress. But I opened a Chrome incognito window to test. That’s when it loaded all of those assets (these assets–you can see the admin-bar stylesheet). I assumed the incognito window would load as if I was not logged in to WordPress. But I just tested again, this time I logged out of WordPress. The browser did *not* download the Elementor assets. So I guess incognito mode still loads as if I’m logged in to WordPress. Didn’t know that.

    We can consider this resolved.

    Go Hoos.

    Thread Starter cag8f

    (@cag8f)

    @cavalierlife Actually sorry, but I just re-tested this. I logged out of WordPress, and opened my home page in an incognito window. Even though I have not used Elementor on this page, the browser still loads two files:

    /elementor/assets/lib/font-awesome/css/all.min.css?ver=3.3.0
    /elementor/assets/lib/font-awesome/css/v4-shims.min.css?ver=3.3.0

    screenshot. You can see the page here: https://dev.horizonhomes-samui.com/.

    Any ideas how to ensure these files are loaded only on the pages that need them? I am comfortable adding custom PHP code.

    Thanks.

    You can follow the instructions at https://docs.elementor.com/article/286-speed-up-a-slow-site but I’m wondering if that Essential Addons plugin might not be contributing to this. Just a guess, but I notice it in the code, so check that out as well.

    Thread Starter cag8f

    (@cag8f)

    >> but I’m wondering if that Essential Addons plugin might not be contributing to this. Just a guess, but I notice it in the code, so check that out as well.

    OK I gave that a test. Specifically, I deactivated that plugin, then tested again. No Elementor assets were loaded at all. When I reactivated the Essential Addons plugin, then all 5 files (3 from Elementor and 2 from Essential Addons) were loaded onto the page.

    I’ll try to open a dialogue with those developers. I will report back here when I have news. Thanks for the help.

    Thanks for testing that and letting us know that EA was loading those assets.

    Thread Starter cag8f

    (@cag8f)

    @cavalierlife I have an update. I contacted the developers of the other plugin (Essential Addons for Elementor). They said their devs see the issue, and will fix it in the next version (current version is 3.3.1), which should be released within 2 weeks. I can update here if/when that occurs.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to prevent pages from downloading Elementor assets if they are not needed?’ is closed to new replies.