Опис
This plugin will add the ability to preload the largest contentful paint (LCP) Image on an individual page or post. This is designed to remove the “Preload the image used by the LCP element in order to improve your LCP time” warning that Google’s Pagespeed Insights sometimes serves.
For Support
I offer support in two places:-
- For urgent (paid for) support, please contact me directly.
- For not so urgent support, please use the WordPress.org forums.
On Github
This project is now on github, you can view the repository here. There are other versions, but this is the one I’ve put up, so where all the developmental will be tracked.
Встановлення
- Upload the plugin to the /wp-content/plugins/ directory or use the Add New feature
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to any post and page and specify the LCP Image for that page.
Should you wish to use this plugin for custom post types, go to Settings > Preload LCP Image. By default it appears on posts and pages although you can set it to appear on any custom post type on this page.
For more guidance on how to determine the URL to use, please use my guide on how to determining the LCP image for a WordPress post
Відгуки
Учасники та розробники
“Preload LCP Image” — проект з відкритим вихідним кодом. В розвиток плагіну внесли свій вклад наступні учасники:
УчасникиПерекладіть “Preload LCP Image” на вашу мову.
Цікавитесь розробкою?
Перегляньте код, перегляньте сховище SVN або підпишіться на журнал розробки за допомогою RSS.
Журнал змін
1.3
- Allow the user to fall back to “post thumbnail” if not specified.
1.2
- Fixes a bug that causes a console error that ignores the “as” types due to unknown “as” or “type” values, or non-matching “media” attribute.
- Improves the UX of the page in question
1.1
- Allow the ability to specify different URLs for mobile or desktop viewpoints.
1.0.3
- Tested with WordPress 6.4
1.0.2
- Tested with WordPress 6.3
1.0.1
- Tested with WordPress 6.2
1.0
- First Public Release