Skip to content

Improve page loading speed by preventing unused scripts and CSS from being loaded #13282

@JohnMulderFrance

Description

@JohnMulderFrance
  • I have searched for similar features requests in both open and closed tickets and cannot find a duplicate.
  • The feature is still missing in the latest stable version of Elementor ( Elementor Pro. )

This request is going to enable a much faster page loading speed.

One of the biggest drawbacks of elementor is the amount of assets loaded on every page. e.g. i have a page with just one button and one shortcode widget, here elementor loads 1411,1 KB of scripts and CSS. There are tools like "asset cleanup" or "perfmatters" that enable you to prevent specific assets from being loaded. From above page i was able to prevent 289,7 KB from loading by preventing all icon related assets and the swiper.min.js script, because i am sure no icon, carousel or slider is used. But there must be more unused assets. I tried by trail and error to identify scripts and CSS i could do without, but that leaves you with a uncertain feeling, because you do not exactly know what you are doing. Anyone wanting to prevent unused assets from being loaded, would be helped with just a simple list where each asset is associated with a widget it is used in or for.
Like e.g.
/wp-content/plugins/elementor/assets/lib/font-awesome/css/all.min.css FONTAWESOME ICONS
/wp-content/plugins/elementor/assets/lib/swiper/swiper.min.js CAROUSEL, SLIDER widget

In fact this is no real feature request, since it involves no intervention or coding whatsoever, but i can think of nothing more important to me than this list and i guess i am not alone. I could be wrong, but i think it would be something simple to do for a developer deeply engrained in elementor.
And imagine that this would enable elementor users to reduce their page size of 50% or even more.

Best,
John

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions