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”
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”
Since v4.2, WordPress will by default add a couple of scripts and styles about emoji in the header. If you are crazy about the speed of your site, you can easily remove those codes by adding following to your functions.php. View the code on Gist.