Download the PHP package innocode-digital/wp-hybrid-lazy-loading without Composer

On this page you can find all versions of the php package innocode-digital/wp-hybrid-lazy-loading. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wp-hybrid-lazy-loading

Hybrid Lazy Loading

Description

A Progressive Migration To Native Lazy Loading.

The idea of plugin is to use Native Lazy Loading when browser supports it and for all others implements lazy loading through lazysizes library that loads only when needed.

Plugin adds loading attribute for all attachments, oEmbed iframes, images and iframes that are inserted to content through editor, also CSS class lazyload adds to those elements as well as data-src, data-srcset and data-sizes are created from corresponding attributes.

Installation

Clone this repo to wp-content/plugins/:

`

or use Composer for that.

Activate Hybrid Lazy Loading from Plugins page or WP-CLI: wp plugin activate wp-hybrid-lazy-loading.

Documentation

By default plugin loads lazysizes lazily, which means only for ones that are w/o Native Lazy Loading support but it's possible to change this behaviour with filter:

It makes sense when e.g. lazysizes is using also for other functionality.


By default CSS class "lazyload" removes from elements in browsers with Native Lazy Loading support but it's possible to change this behaviour with filter:

It makes sense when e.g. it's needed to use lazysizes CSS classes that are adding to element during loading process in all browsers.


By default all attachments are loading lazily but it's possible to change this behaviour with filter:

It makes sense when e.g. featured image should be loaded immediately.


If there are images and iframes that are rendered in PHP code of theme or plugin and they should be loaded lazily, it's possible to use next methods:


All versions of wp-hybrid-lazy-loading with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
ext-dom Version *
ext-libxml Version *
ext-mbstring Version *
composer/installers Version ~1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package innocode-digital/wp-hybrid-lazy-loading contains the following files

Loading the files please wait ....