2/25/2023 0 Comments Tinypng webp![]() A feature toggle to turn the whole feature on/offĪll the source code is available on our Github.Before and After compression information stored in any Image field of choice.Logging that outlines which images were processed.Error handling for when the API limits are reached.A scheduled task that will process any image not already processed.A button in the CMS to crunch any single image.This implementation of the Tiny PNG API introduces the following variances: It will send across your image data and receive a compressed image back for storage. The button below is hooked up to chat to Tiny PNG API. Tiny PNG also has a developer API, so we have used this to build in a compression tool that can be used directly from your Sitecore toolbar. On the flip side, content editors love Tiny PNG, which is one of the most popular image compression website utilities going around. I will, however, say that it can add complexity to deployments and CI/CD pipelines and while some claim to have had success in Azure Apps, others have not. I’m a big fan of Dianoga and have used it over the years to crunch loads of oversized images introduced by Content Editors. Defer Defer Deferįor this post, i’m going to look at an alternative to Dianoga. Just as a reminder, here is the main list that I would consider you need to check off to be winning at this game.Ģ) Ensure a cache strategy is in place and verify its working.ģ) Dianoga is your friend for image compressionĤ) Use responsive images (must serve up smaller images sizes for mobile)ĥ) Introduce Critical CSS and deferred CSS filesĦ) Javascript is not a page speed friend. It takes a lot of different factors to come together. I’ll be the first to admit that getting really good page speed scores isn’t easy. If you haven’t already seen it, head on over the Sitecore Speedy and see some of the results we achieved. ![]() Last year I took a deep dive into attempting to improve the page speed on Sitecore SXA sites by using some of Google’s recommended techniques to structure the page. At the start of the year, I’ve picked up where I left off, on page speed. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |