Optimised images defined using srcset and parameters not used in tests
|
08-11-2020, 09:31 PM
Post: #3
|
|||
|
|||
RE: Optimised images defined using srcset and parameters not used in tests
Thanks for the fast moderation and reply. I've been looking at this (please bear in mind I'm a Business Analyst, not a developer) and it appears we are using the <Picture> element. Even with preserving the original user agent it appears that the jpg images are being displayed, not webp.
Here is the snip of code used to display the image used in the above example (no trade secrets, this comes from Chrome Dev Tools). The only bit I've edited is to put "HTTP:" in front of each image URL so it will work locally. I saved this snip as an HTML file and have been able to run it locally and see a WebP image displayed in Chrome, and a JPEG in IE so this removes any user agent sniffing from our code base (I don't know how the hosted image solution, Contentful, might work). Code: <picture class="c-picture"> Here's the link to the test with 'Preserve original user agent' set. https://webpagetest.org/result/200811_CG...7e93df09e/ |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Optimised images defined using srcset and parameters not used in tests - Andy Clarke - 08-10-2020, 11:09 PM
RE: Optimised images defined using srcset and parameters not used in tests - pmeenan - 08-10-2020, 11:53 PM
RE: Optimised images defined using srcset and parameters not used in tests - Andy Clarke - 08-11-2020 09:31 PM
RE: Optimised images defined using srcset and parameters not used in tests - pmeenan - 08-12-2020, 12:52 AM
RE: Optimised images defined using srcset and parameters not used in tests - Andy Clarke - 08-14-2020, 01:34 AM
RE: Optimised images defined using srcset and parameters not used in tests - pmeenan - 08-14-2020, 02:58 AM
RE: Optimised images defined using srcset and parameters not used in tests - Andy Clarke - 08-14-2020, 05:06 PM
|
User(s) browsing this thread: 1 Guest(s)