user7108250 user7108250 - 1 year ago 54
PHP Question

How to speedup wordpress website. take too much time to loading

I am new in wordpress , I build a website in wordpress , but it take too much time to load can you told what should i do to increase performance,

I already install cache plugins. but not getting to much improvement .

Answer Source

Install some image Compress plugins Compress JPEG & PNG images to optimize image and try to use Thumbnail image in your page .

I think you use full size image in you page try to use small size image.

//Default WordPress
the_post_thumbnail( 'thumbnail' );     // Thumbnail (150 x 150 hard cropped)
the_post_thumbnail( 'medium' );        // Medium resolution (300 x 300 max height 300px)
the_post_thumbnail( 'medium_large' );  // Medium Large (added in WP 4.4) resolution (768 x 0 infinite height)
the_post_thumbnail( 'large' );         // Large resolution (1024 x 1024 max height 1024px)
the_post_thumbnail( 'full' );          // Full resolution (original size uploaded)

And you can put this in you .htaccess file to cache you js and Css and image file

ExpiresActive On
    ExpiresByType image/jpg "access 1 year"
    ExpiresByType image/jpeg "access 1 year"
    ExpiresByType image/gif "access 1 year"
    ExpiresByType image/png "access 1 year"
    ExpiresByType text/css "access 1 month"
    ExpiresByType application/pdf "access 1 month"
    ExpiresByType application/javascript "access 1 week"
    ExpiresByType application/x-shockwave-flash "access 1 month"
    ExpiresByType image/x-icon "access 1 year"
    ExpiresDefault "access 2 days"