agoat / contao-deferredimages
Contao 4 deferred images library
Installs: 276
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 4
Type:contao-bundle
Requires
- php: ^7.1
- ext-gd: *
- contao/core-bundle: ^4.4
- contao/image: ^0.3.5
- contao/imagine-svg: ^0.1.2 || ^0.2
- symfony/framework-bundle: 3.4.* || 4.1.* || 4.2.*
Requires (Dev)
- phpunit/phpunit: ~4.5
Replaces
- contao-legacy/imageondemand: *
README
Now compatible with Contao 4.6 !!
About
Contao normally generates (resizes) the images on a page during page generation. This can lead to long page load times or, in the worst case, script timeouts due to server restrictions.
This library shifts the image calculation from page generation to the time when the image is loaded in the browser. As a result, pages will have very short loading times and script timeouts are avoided, even with hundreds of images on a page.
Install
Contao manager
Search for the package and install it
agoat/contao-deferredimages
Managed edition
Add the package
# Using the composer
composer require agoat/contao-deferredimages
Registration and configuration is done by the manager-plugin automatically.
Standard edition
Add the package
# Using the composer
composer require agoat/contao-deferredimages
Register the bundle in the AppKernel
# app/AppKernel.php class AppKernel { // ... public function registerBundles() { $bundles = [ // ... // after Contao\CoreBundle\ContaoCoreBundle new Agoat\DeferredImagesBundle\AgoatDeferredImagesBundle(), ]; } }