=== Antypas Core Web Vitals ===
Contributors: ioannisantypas
Tags: core web vitals, performance, preload, preconnect, resource hints
Requires at least: 5.6
Tested up to: 7.0
Requires PHP: 7.2
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Improve your Core Web Vitals with resource hints that WordPress does not add for you: preconnect, DNS-prefetch and preload.

== Description ==

Antypas Core Web Vitals focuses on one thing that makes a real difference to loading speed and is missing from WordPress out of the box: resource hints.

Resource hints tell the browser, as early as possible, which servers to connect to and which files to load first. Used well, they improve your Largest Contentful Paint (LCP), one of the Core Web Vitals that Google measures.

= What it does =

* Preconnect to the servers your pages rely on, such as a CDN, font host, analytics or video provider
* DNS-prefetch as a lighter hint for less critical servers
* Preload your most important files, such as a custom font or hero image, with the correct type detected automatically
* A one-click Google Fonts speed-up that adds the recommended connection hints
* An optional switch to force your featured image to load first, for themes where it loads slowly

= Works with modern WordPress =

Recent versions of WordPress already add lazy loading and prioritise the main image automatically, so this plugin does not duplicate that. It adds the resource hints WordPress leaves to you, with a simple, plain-English interface.

= Use it sparingly =

Resource hints are powerful but work best in small amounts. Preconnect to a handful of servers and preload only one or two truly critical files. Hinting everything can slow a page down instead of speeding it up.

== Installation ==

1. Upload the plugin to the /wp-content/plugins/ directory, or install it through the Plugins screen in WordPress.
2. Activate the plugin through the Plugins screen.
3. Go to Web Vitals in the admin menu and add the servers and files your pages use.
4. Test your pages with PageSpeed Insights to see the effect.

== Frequently Asked Questions ==

= What is a resource hint? =

A resource hint is a small instruction in the page code that tells the browser to get a head start on a connection or a file. The browser does the work earlier, so important content appears sooner.

= Which servers should I preconnect to? =

Only servers your pages actually load from. Common examples are a content delivery network, a font provider, an analytics service or a video host. If you are unsure, start with the Google Fonts option if you use Google Fonts.

= What should I preload? =

Just one or two of your most important files, usually a custom web font or the main image at the top of the page. Preloading too many files competes for bandwidth and can make pages slower.

= Is this a caching plugin? =

No. It does not cache pages. It works alongside any caching plugin you already use.

= Will it speed up my site on its own? =

Resource hints help the browser load critical resources sooner, which can improve LCP. For the biggest gains, combine them with good hosting, caching and optimised images.

== Changelog ==

= 1.0.0 =
* Initial release.
* Preconnect, DNS-prefetch and preload resource hints with a simple interface.
* Automatic file-type detection for preloaded files.
* One-click Google Fonts speed-up.
* Optional featured-image priority boost.