Optimizing & Speeding Up Your WordPress Site Tip #1

Setting up a cookie free domain Its better to serve the static contents from separate cookie free domain. Which speed up your website. This is because browser will consider both as a separate domain. The simplest way to create a cookie free domain in create a sub domain. By default what ever cookies created on main domain will be shared on sub domain also. But in wordpress we can define that only for which domain it should store the cookies. So it will not get shared on subdomain. Here are the steps for that: First create a subdoamin. like cdn.xyz.com, images.xyz.com, i generally use static.xyz.com Now point this domain to the wp-content directory of the wordpress. Aftre doing this you need to edit the wp-config.php file which is located at the root of the wordpress. You need to add below code in your wp-config.php file. define(“WP_CONTENT_URL”, “http://static.yourdomain.com”); define(“COOKIE_DOMAIN”,...