Speed up WordPress website

,

wp-logoHow can you speed up your WordPress website?

  1. start with a good hosting company (A CDN hosts your files across a huge network of servers around the world.)
  2. updated WP theme from WordPress’ default to the Genesis framework (check speed theme on PINGDOM before you buy wp theme identifying which plugins are slowing down your website (P3 is a good diagnostic plugin, because it shows you the impact of your other plugins on page-loading time. )
  3. automatically compressing Web pages, images, JavaScript and CSS files
    Open your .htaccess file (found in the root directory on your server), and add the following code to it:
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
    Once you’ve added this snippet of code to .htaccess, test whether Gzip is working on your website by running Check Gzip Compression.
  4. Compress imagesWP Smush.it is another great plugin that automatically compresses images as you upload them to the media library.
  5. keeping your website’s database clean; – The solution to this is a fantastic plugin called WP-Optimize, which routinely clears out your database’s trash, keeping the database efficient and filled only with what needs to be kept.
  6. Merge css and js scripts – Plugins such as Better WordPress Minify will combine all of your style sheets and JavaScript files into one, reducing the number of requests that the browser needs to make.
  7. setting up browser caching the right way.
  • TURN OFF PINGBACKS AND TRACKBACKS. You can turn them off under the “Discussion” tab in “Settings.”
    SPECIFY IMAGE DIMENSIONS AND CHARACTER SETS – add the character set to your website’s “head” section.
  • MOVE CSS TO THE TOP AND JAVASCRIPT TO THE BOTTOM
    USE CSS SPRITES – CSS sprites speed up a website because loading one big image is much faster than loading a lot of small images. Safari does not load large sprites, so use William Malone’s calculator to identify whether your sprite is too large.
  • ENABLE KEEP ALIVE – To enable Keep Alive, simply copy and paste the code below into your .htaccess file:
    Header set Connection keep-alive
  • REPLACE PHP WITH STATIC HTML WHERE APPROPRIATE
    PHP is great for making a website efficient and reducing the need to enter the same information multiple times. However, calling information through PHP uses up server resources and should be replaced with static HTML where it doesn’t save any time.

source