This simplifies maintainance among multiple Plone versions and avoids bundling of unrelated resources. We just deprecated resource registries in favor of a simpler approach: a viewlet in plone.htmlhead.
CONVERSA AFIADA BLOG HOW TO
This add-on uses a very opinionated approach on how to handle static resources in Plone. These transforms can be applied to all users or only to anonymous. if the tag is a containing a tweet, it adds a data-twitter attribute and removes the tag associated with the Twitter widget to avoid a useless request.if the tag is an, transforms the src attribute into a data-src.if the tag is an, transforms the src attribute into a data-src and uses a gray square in its place to maintain valid HTML code (this placeholder is loaded using the data URI scheme to avoid a new request to the server).The transformer looks for all the, and tags inside the content and does the following: This package adds a transformer to the transform chain to integrate lazysizes into Plone. Go to the 'Site Setup' page in a Plone site and click on the 'Add-ons' link.Ĭheck the box next to collective.lazysizes and click the 'Activate' button. Edit your buildout.cfg and add collective.lazysizes to the list of eggs to install:Īfter updating the configuration you need to run ''bin/buildout'', which will take care of updating your system.To enable this package in a buildout-based installation: Got an idea? Found a bug? Let us know by opening a support ticket. These are some sites using collective.lazysizes:Īs long as we have tested, lazysizes seems not to interfere with image indexing made by crawlers like Googlebot. It also prioritizes resources by differentiating between crucial in view and near view elements to make perceived performance even faster.īy using this package you can expect reductions of up to 80% in load time, 75% in page size and 50% in number of requests. Lazysizes is a fast, SEO-friendly and self-initializing lazyloader for images (including responsive images picture/srcset), iframes, scripts/widgets and much more. This package integrates lazysizes, a lightweight lazy loader, into Plone.