AVIF is a modern image format based on the AV1 video format and generally has better compression than WebP, JPEG, PNG and GIF. This format is designed to supersede them. Unfortunately, the support for AVIF in web browsers is still not as high as it is for WebP format. So if we want to use AVIF on our website, it is wise to also provide an easy fallback for other browsers. The easiest … [Read more...]
How to Serve WebP Image Format with Fallback for Other Browsers
Considering the majority of web users are using Chrome, it's probably wise to consider using WebP image format on your website. However, since WebP only supported by Chrome and Opera, we also want to utilize an easy fallback for other browsers. The easiest method to do is by using element as follow: That’s all there is to it. You can check which image is loaded using your browser … [Read more...]
How to Use a CDN jQuery in Genesis Framework
As a follow up to my previous post on using a CDN jQuery in your website. If you use Wordpress (with Genesis Framework) and want to take advantage of a CDN (Content Delivery Network) hosted jQuery library to your theme, edit your functions.php file to include these codes: The codes above will include jQuery CDN on your site, but not the fallback method mentioned in this post. To implement … [Read more...]
Use a CDN Hosted jQuery in Your Website
Serving your jQuery from a public CDN (Content Delivery Network) can arguably offer several advantages to your website, especially if you don't use a fast server to host it. If you're not familiar with both sides of the arguments, please check the two attached links below as there's no points to repeat the subject over the advantages vs. disadvantages of hosting jQuery from a CDN. PROS - 3 … [Read more...]
Got HTML5?
Since the publishing of its First Public Working Draft in 2008, HTML5 (not HTML 5) has gained wider acceptance among developers and designers. While it's not 100% foolproof, HTML5, combined with CSS3, gives designers greater control on web layout as they envision it, thus more and more web designers and developers committed to using it. If you haven't taken a plunge and want to know more … [Read more...]