Image Prioritizer
This plugin optimizes the loading of images (and videos) with prioritization to improve Largest Contentful Paint (LCP), lazy loading, and more accurate image size selection. The current optimizations include: Add breakpoint-specific fetchpriority=high preload links (both as LINK[rel=preload] elements and Link response headers) for image URLs of LCP elements: An IMG element, including the srcset/sizes attributes supplied as imagesrcset/imagesizes on the LINK. The first SOURCE element with a type attribute in a PICTURE element. (Art-directed PICTURE elements using media queries are not supported.) An element with a CSS background-image inline style attribute. An element with a CSS background-image applied with a stylesheet (when the image is from an allowed origin). A VIDEO element’s poster image. Ensure fetchpriority=high is only added to an IMG when it is the LCP element across all responsive breakpoints. Add fetchpriority=low to IMG tags which appear in the initial viewport but are not visible, such as when they are subsequent carousel slides. Lazy loading: Apply lazy loading to IMG tags based on whether they appear in any breakpoint’s initial viewport. Implement lazy loading of CSS background images added via inline style attributes. Lazy-load VIDEO tags by setting the appropriate attributes based on whether they appear in the initial viewport. If a VIDEO is the LCP element, it gets preload=auto; if it is in an initial viewport, the preload=metadata default is left; if it is not in an initial viewport, it gets preload=none. Lazy-loaded videos also get initial preload, autoplay, and poster attributes restored when the VIDEO is going to enter the viewport. Responsive image sizes: Ensure sizes=auto is set on IMG tags after setting correct lazy-loading (above). ~~Compute the sizes attribute using the widths of an image collected from URL Metrics for each breakpoint (when not lazy-loaded since then handled by sizes=auto).~~ (This has been removed due to an issue; use Enhanced Responsive Images instead.) Reduce the size of the poster image of a VIDEO from full size to the size appropriate for the maximum width of the video (on desktop). This plugin requires the Optimization Detective plugin as a dependency. Please refer to that plugin for additional background on how this plugin works as well as additional developer options. 👉 Note: This plugin optimizes pages for actual visitors, and it depends on visitors to optimize pages. As such, you won’t see optimizations applied immediately after activating the plugin. Please wait for URL Metrics to be gathered for both mobile and desktop visits. And since administrator users are not normal visitors typically, optimizations are not applied for admins by default. Your site must have the REST API accessible to unauthenticated frontend visitors since this is how metrics are collected about how a page should be optimized. There are currently no settings and no user interface for this plugin since it is designed to work without any configuration.
Top keywords
- element8×1.65%
- image7×1.45%
- initial6×1.24%
- preload6×1.24%
- video6×1.24%
- viewport6×1.24%
- img5×1.03%
- initial viewport5×1.03%
- loading5×1.03%
- sizes5×1.03%
- attributes4×0.83%
- lazy4×0.83%
SVG Block
This SVG block allows you to display SVG images as inline HTML markup. You can either choose an icon from the icon library with more than 3000 icons or you can upload or input your custom SVG images directly in the block’s setting. It also allows you to upload SVG images to the WordPress media library, and load them into the icon library. Only SVG files that have XML declaration at the top like can be uploaded to the WordPress media library. Key Features Accessibility ready with ‘img’ role, automatically generates title and description from settings. Automatically sanitize SVG markup to make it safe and lightweight. Include almost all settings to customize the SVG image. Include a collection of common non-rectangular dividers. An icon library included icons from “Bootstrap Icons”, “Ionicons”, “Dashicons” and new “WordPress Icons”. Allow uploading SVG images to the WordPress media library Automatically load SVG images from the media library into the icon library Video tutorials How to create an icon with custom styles using the icon library: How to create a non-rectangular background section: How to create icon buttons: Please take a look at these custom block patterns that use this block to see how it can be applied to real-world sites. If this plugin is useful for you, please do a quick review and rate it on WordPress.org to help us spread the word. I would very much appreciate it. Please check out my other plugins if you’re interested: Content Blocks Builder – Build custom layouts and blocks visually in the Block Editor without needing a code editor, using only core blocks and native Gutenberg features. Meta Field Block – A single block to display custom fields in the Block Editor without coding. It supports ACF, MetaBox, WooCommerce, meta, rest field, shortcode and more. Works everywhere: in the Site Editor (FSE), the Block Editor, inside Query Loop, WooCommerce Product Collection, Term Query blocks, and even in template files. Icon separator – A tiny block just like the core/separator block but with the ability to add an icon. Breadcrumb Block – A simple breadcrumb trail block that supports JSON-LD structured data and is compatible with WooCommerce. Block Enhancements – Adds practical features to blocks like icons, box shadows, transforms, etc. Counting Number Block – A block to display numbers with a counting effect Better YouTube Embed Block – A block to solve the performance issue with embedded YouTube videos. It can also embed multiple videos and playlists. The plugin is developed using @wordpress/create-block.
Top keywords
- block18×4.34%
- icon10×2.41%