=== Easy Optimizer – Lazy-load images, videos & iframes ===
Contributors: easywpstuff
Tags: lazyload, images, preload, performance, elementor
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 5.6
Stable tag: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Convert images to WebP/AVIF via ShortPixel CDN, lazy-load images/backgrounds/iframes/videos and preload pages for faster navigation.

== Description ==

Easy Optimizer is a simple and lightweight plugin that helps improve your website's performance by:
- Lazy-loading images, background images, iframes and videos
- Preloading pages to speed up navigations
- Optionally rewriting image URLs to a ShortPixel CDN for next-gen format delivery (WebP/AVIF) and optimization

== Key Features ==

* Serve images in next-gen formats via ShortPixel CDN (WebP/AVIF when supported).
* Lazy-load images and iframes to reduce initial page weight.
* Lazy-load background images and HTML5 videos.
* Page preloading to improve perceived navigation speed.
* Elementor compatible.

== External Services ==

This plugin optionally rewrites image URLs to ShortPixel's CDN to serve optimized images:

* Service: ShortPixel CDN (https://cdn.shortpixel.ai/)
* What it does: When "Image Optimization" is enabled in plugin settings, image URLs on your site (for example, https://example.com/wp-content/uploads/image.jpg) are rewritten so that visitors' browsers request images from ShortPixel's CDN (for example, https://cdn.shortpixel.ai/spai/.../https://example.com/wp-content/uploads/image.jpg). This enables ShortPixel to serve optimized, next-gen formats like WebP/AVIF where supported.
* What data is sent: Only the image URL requested by the visitor's browser is requested from ShortPixel's CDN. No additional site data or personal user data is sent by the plugin itself.
* Why: Using the CDN can reduce image weight and speed delivery of images.
* Links: ShortPixel Privacy Policy: https://shortpixel.com/privacy
         ShortPixel Terms of Service: https://shortpixel.com/terms-of-service

== Frequently Asked Questions ==

= How does this plugin improve performance? =
By lazy-loading images and using ShortPixel CDN for optimized images, the plugin reduces the initial amount of resources loaded and improves FCP and LCP scores.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/easy-optimizer` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Navigate to Settings → Easy Optimizer and configure options.
4. Save changes.

== Screenshots ==

1. The plugin's settings page where you can enable lazy-load and preload.

== Changelog ==



1.1.0
* Refactor into OO structure, single output buffer, safer parsing
* Modular ShortPixel CDN support (module architecture)
* Admin UI tweaks, styles and JS improvements
* Sanitization and WordPress.org guideline fixes

1.0.9
* Added support for elementor backgroud image
* Fixed Minor issues 
1.0.7
* Improved lazyloading placeholder.
1.0.6
* Added Shortpixel image optimizer.
1.0.5
* Fixed Minor issues
1.0.4
* Added Background lazy load
* Improve Lazy loading images
* Improved LCP (Largest Contentful Paint) while lazyloading background 
1.0.3
* Added Video LazyLoading
* Added lazyloading support for webp
* Fixed Preload script
1.0.2
* fixed minor issue
1.0.1
* added preload
1.0.0
* Initial release