WP Live.php – “livereload for WordPress”

I’m very used to using grunt-contrib-watch to “livereload” my browser while I’m developing a site. Today it occured to me the same feature would be nice to have when I’m building out a page inside WordPress. In other words, whenever I update a page or post inside my WordPress admin, I wanted the browser to automatically refresh the tab I’ve got open for the client-side. A quick Google search lead me to WP Live.php.

After installing the plugin in my development environment, I got back to work building a new page. Not having to refresh my browser every time I updated the page saved me several keystrokes over the course of my build.

I made an animated GIF to show you WP Live.php in action:

wp-live-php_small

Make Your Site Faster with Async and Deferred JavaScript: Introducing script_loader_tag – WPShout

Learn how to speed up your WordPress page loads by using the script_loader_tag filter. WPShout explains how.

Today I’m going to discuss a new, and very nice, site speed improvement that became possible in WordPress 4.1. What changed? The introduction of a new filter, script_loader_tag. This filter lets us easily change the HTML markup of enqueued script elements—that is, of JavaScript files that were correctly added into a WordPress site using WordPress’s wp_enqueue_script function.

Source: Make Your Site Faster with Async and Deferred JavaScript: Introducing script_loader_tag | WPShout