user3367662
user3367662

Reputation: 31

Wordpress site speed issue

I have a WordPress website using Elementor. Hosting it using Managed WordPress by GoDaddy. I need to improve the site speed but facing a few issues:

  1. Elementor plugin makes the site slow. But currently I do not plan to change the plugin as I am using the pro version as well. (Tested it by deactivating Elementor and Elementor Pro)
  2. GoDaddy does not allow me to install certain cache plugins.
  3. Even if I use a plugin like Hummingbird (which is allowed by GoDaddy), our team continues make changes in existing pages. Hence changes made by the team, do not get reflected on existing pages. Hence cannot use cache plugins to improve site speed.
  4. Tools such as PageSpeedInsights and Gtmetrix suggest deferring of javascripts. I have added the code in my child theme. But it continues to throw the same issue. Have tried multiple versions of the code.

Current code:

function defer_parsing_of_js( $url ) {
    if ( is_user_logged_in() ) return $url;
    if ( FALSE === strpos( $url, '.js' ) ) return $url;
    if ( strpos( $url, 'jquery.js' ) ) return $url;
    return str_replace( ' src', ' defer src', $url );
}
add_filter( 'script_loader_tag', 'defer_parsing_of_js', 10 );

Request you to suggest solutions/alternatives in improving the site speed on desktops as well as hand-held devices.

Upvotes: 1

Views: 313

Answers (1)

Tretanz Infotech
Tretanz Infotech

Reputation: 20

try litespeed cache plugin,

https://wordpress.org/plugins/litespeed-cache/

and set option to purge all cache when editing pages or post, it will auto clear cache and it provides functionality like, deferring of javascripts, css and js minify and combine, lazy loading etc..

Upvotes: 0

Related Questions