Lazy Load Facebook Comment to Speed Up your website

Many WordPress bloggers prefer to use a third comment plugins instead of default WordPress comment system no matter they are pissed of spam comments or just feel cool. I’ll take the Facebook Comment widget as an example to show how to load the scripts only after user clicking the button. By defer loading the scripts, … Continue reading “Lazy Load Facebook Comment to Speed Up your website”

Clean Up wp_head

WordPress will by default output quite a lot of unnecessary stuff on the document header with the wp_head() function. Let’s start removing them. Put following codes to your functions.php, a recommended way is to hook to the after_setup_theme action. View the code on Gist. Comment line by line. L1: The RSD(Really Simple Discovery) is an … Continue reading “Clean Up wp_head”