BLOG
hints, tips, tricks and news3 Ways to Improve PageSpeed by Moving jQuery to the Footer of a WordPress site.
October 27th, 2020Here’s how to improve your site’s rating on Google’s PageSpeed by moving render-blocking jQuery to the footer. If you’ve ever tried to improve a site’s performance on Google’s PageSpeed, you’ve probably seen that one of the “Opportunities” is to “Eliminate render-blocking resources”. These resources are typically CSS and JavaScript files. Usually, it’s not easy to […]
How to create a horizontally scrolling section with 2 rows using CSS grid
September 9th, 2020Creating horizontal scrolling of multiple rows with display: grid is easy. CSS grid provides powerful layout options to help achieve all sorts of page layouts.
How to Use WebP Images With Modern Browsers
August 31st, 2020WebP is the next generation image file type. WebP images are comparatively smaller file sizes. See how you can use WebP on your website.
How to Move a Meta Box in WordPress
August 2nd, 2020Sometimes you want to programmatically move a WordPress meta box to a more ideal position on the editor screen. Here’s my way, with code.
Ordering nested comments by the latest reply
June 25th, 2020WordPress orders its comments by oldest or newest first. So how do you go about ordering nested comments by the age of respective replies?
Use the hover media query to detect mobile devices
April 13th, 2020Have you needed to apply styling to only touch devices, or only non-touch devices? Well, great news, the hover media query can ease your woes.
Do you need your site to load in under half a second, on mobile?
February 21st, 2020Pages that load under one second get more visitors. With every passing second waiting visitors lose interest and leave before ever seeing your content.
How to Remove HTML Comments from the Page Source
February 20th, 2020Many plugins (and themes) inject HTML comments into the page’s source code that aren’t really needed in your a live site. Here’s how to remove them.
Extracting Thumbnails from Videos
February 18th, 2020Recently, I’ve had a couple of projects that require thumbnails for video posts. There are plugins out there to do this, but I wanted a simple, lightweight way. Good news is, this can be achieved very easily by making use of WordPress’s WP_Embed class. /** * Maybe get thumbnail from embed * * @param string […]
Inlining CSS – the Good, the Bad and the Ugly
November 26th, 2019I’m a sucker for performance gains to the point that I’m convinced I’m actually losing time overthinking it – 🤔 A good example is CSS delivery and it’s always interesting to get others’ opinions on how important they consider styling performance to be and how they measure it. Inlining – good/bad/ugly? Good I see genuine […]