This function converts all image tags with an SVG image in it’s source into an inline SVG. This is useful for having clean HTML, but still gaining benefits of inline…
In the post I show an interesting method for deferring loading of images using PHP and jQuery within a WordPress environment. However, this method can be applied to any environment…
In this post, I show how to implement masonry, isotope, infinite scroll, and imagesloaded in WordPress. I go more into detail about isotope because it’s a more robust library than…
This snippet shows how to use the scrolling of one container (which isn’t the window or document) to perform some sort of action. This is useful for web apps that…
In this blog post I show how to imitate a long press/ taphold on the desktop. There’s not really any use cases for this that I can think of in…
This snippet is for deferring running of any jQuery code until jQuery is loaded onto the page. This function is useful if you need to call your jQuery somewhere on…
In this blog post, I show how to create a custom pseudo selector with jQuery. This is useful in a few situations when you can avoid writing a long function…
You will agree with us when we will say that changing your website’s favicon dynamically and on demand, is the simplest thing ever. We provided you a (only) 3 line jQuery function, that will update your favicon in a jiffy. Here’s how!
Javascript has an outerHTML function, but jQuery does not. In this snippet of code, we show you how to create an extended jQuery function so that you can use .outerHTML() on any selector.