Weston Ruter
Forum Replies Created
-
Hello! I was able to reproduce the issue. It seems related specifically to bfcache. I’ve opened a PR which fixes the issue for me: https://github.com/WordPress/performance/pull/2438
I’ve also added a comment on that PR with a build for testing.
Forum: Plugins
In reply to: [Modern Image Formats] The converted files are not displayedThe plugin checks whether the generated AVIF/WebP is smaller than the original.
Please see
webp_uploads_should_discard_additional_image_file().As summarized by Claude Code, here’s how it works:
webp_uploads_should_discard_additional_image_file()(helper.php:316) compares the filesize of the generated image against the original. If the additional (WebP/AVIF) image is greater than or equal to the original, it returnstrueto discard it.- This behavior is enabled by default — the
webp_uploads_discard_larger_generated_imagesfilter defaults totrue(line 330). - The filter can be disabled by returning
false:add_filter( 'webp_uploads_discard_larger_generated_images', '__return_false' );. This would force using the modern format regardless of file size. - The comparison is done per-size (thumbnail, medium, large, full, etc.), so it’s possible for some sizes to get a WebP/AVIF version while others keep the original JPEG — as confirmed by the test
test_it_should_create_webp_for_some_sizes_which_are_smaller_in_webp_formatintest-load.php:899.
I also had Claude look at the rendered page on your site:
The site IS running webp-uploads 2.6.1:
<meta name="generator" content="webp-uploads 2.6.1">Most images are served as plain JPEG with no
<picture>wrapper or WebP/AVIF<source>alternatives. This is consistent with the discard-larger behavior – the AVIF/WebP conversions of these fuse diagram images (which are typically simple graphics with sharp lines/text) were likely larger than the JPEG originals, so the plugin discarded them.However, there’s one anomaly – a single image IS wrapped in a
<picture>element:<picture class="wp-picture-53782" style="display: contents;"> <source type="image/avif" srcset="https://procarmanuals.com/wp-content/uploads/img/ssp/Self-Study-Program-842003-Motronic-ME-7-Engine-jpg.avif"> <img src=".../cadillac-sts-2005-2011-fuse-layout-7_2024-11-22_12-31-20.jpg" .../> </picture>This looks buggy – the AVIF
<source>points to a completely different image (Self-Study-Program-842003-Motronic-ME-7-Engine-jpg.avif) from an unrelated SSP article, while the fallback<img>is the correct Cadillac fuse layout JPEG. The file paths don’t match at all (/uploads/img/ssp/...vs/uploads/2025/10/...). This means browsers supporting AVIF would load the wrong image entirely.Summary: The discard-larger logic appears to be working correctly for most images on this page (fuse diagrams typically compress better as JPEG than as WebP/AVIF). But that one
<picture>element with the mismatched AVIF source looks like a bug – either in the plugin’s picture element feature or in how this site configured it. Is this something you’re investigating?Forum: Reviews
In reply to: [Performance Lab] great for testing, idk how great for productionThe way it is designed is that it collects URL Metrics for 3 different visits for a given viewport size, and then once it has the three it stops requesting or allowing new metrics to submitted for that viewport. There are 4 different viewports by default, so this means it is intended that there would be 12 requests coming from visitors per URL per week. But since only the desktop and mobile viewport sizes generally have visitors, then this means 6 requests per week per URL.
Granted, more URL Metrics submissions can end up being made in the case of race conditions of two visitors landing on a page at the same time when URL Metrics are needed. This can also happen if the page was cached when the samples of URL Metrics haven’t been fully collected. But once the URL Metrics have been collected, it is intended that no requests would be collected for a week, or until the page is changed.
We’ve also have an issue open to consider an alternative approach where the URL Metrics are not collected from visitors, but rather as part of a logged-in user process, like collecting URL Metrics from the editor after a post has been saved, or kicking off a site-wide URL Metrics collection as part of a batch process. See https://github.com/WordPress/performance/issues/1311
Another couple fixes to the CSS cascade are planned to land in 7.0. I’m planning to commit this pull request which will be part of 7.0-beta5: https://github.com/WordPress/wordpress-develop/pull/10875
Hopefully it addresses the issue for you. If you can test 7.0-beta5 that would be helpful.
Otherwise, if your theme continues to be incompatible with loading block styles on demand, refer to these paragraphs in the 6.9 performance field guide.
Forum: Reviews
In reply to: [Performance Lab] great for testing, idk how great for productionI do advise on never installing the plugins that require optimization detective.
Care to elaborate on your concerns?
Forum: Plugins
In reply to: [Image Prioritizer] Image Prioritizer is now included in WordPress core?Hello. No, the improvements were primarily for improved prioritization of scripts and styles.
Once features from Image Prioritizer are merged into core, they’ll be deactivated so there isn’t redundancy.
The Optimization Detective framework is not part of core, so the optimizations that Image Prioritizer implements are not part of core.
Forum: Plugins
In reply to: [Speculative Loading] What’s the status of this plugin?Hello! See this part of the plugin readme:
This core Speculative Loading functionality was merged into WordPress 6.8, but it only prefetches with conservative eagerness by default. In contrast, this plugin defaults to prerendering with moderate eagerness (i.e. when interacting with a link), and it provides a user interface to customize the mode and eagerness via the “Speculative Loading” section on the Settings > Reading admin screen.
So this plugin provides you a UI to opt-in to more aggressive speculations than what core does by default. Note that the performance improvements provided by Speculative Loading are only when navigating from one page to another page on your site. It does nothing for initial visits, such as from search or social media. I also wrote about this last year including some comparisons of the different configurations.
This isn’t a known issue as far as I know. Thanks for reporting it. I’ve opened a GitHub issue for it: https://github.com/WordPress/performance/issues/2390
Let’s continue investigating there.
Forum: Plugins
In reply to: [View Transitions] Is there a way to stop elements from moving up and down?@mukesh27 Do you see what’s going on here?
Forum: Plugins
In reply to: [View Transitions] Is there a way to stop elements from moving up and down?Hey there.
Can you share some URL pairs which can replicate the issue?
For example: when navigating from URL X to URL Y, the animation of Z is undesireable.
Yes, I’m aware there are still issues with loading separate styles. I’m working on this. See #64389. If you’re able to test a pull request, see https://github.com/WordPress/wordpress-develop/pull/10875
Forum: Reviews
In reply to: [Web Worker Offloading] life saverHello! Thanks for the feedback. I’m somewhat surprised you’re seeing an improvement as we’ve not been getting any feedback that this plugin has improved anything. In contrast, we’ve gotten feedback that this breaks functionality. We’ve been discussing whether to sunset this plugin.
Are you sure that you sure that you’re getting analytics logged into Google Analytics?
@pouyaebrhm please test the fix if at all possible. See pull request. I struggle to get steps to reproduce this issue, so it is difficult to be sure that the fix will be comprehensive.
Trac ticket opened regarding this: https://core.trac.ww.wp.xz.cn/ticket/64592
Related Trac ticket: https://core.trac.ww.wp.xz.cn/ticket/64389
There is a pull request available for testing for the latter.
Forum: Plugins
In reply to: [Instant Back/Forward] Conflict with BatCache on PressableI’ll follow up on GitHub, thanks.