sitegeist / sms-responsive-images

This TYPO3 extension provides ViewHelpers and configuration to render valid responsive images based on TYPO3's image cropping tool.
GNU General Public License v2.0
34 stars 19 forks source link

Idea: preload images #74

Open infabo opened 4 years ago

infabo commented 4 years ago

Idea:

Add a preload-parameter to s:image viewhelper. If set, a link-header to preload the image is sent to the client. Idea: https://addyosmani.com/blog/preload-hero-images/

LeoniePhiline commented 4 years ago

That would be awesome.

s2b commented 4 years ago

Good idea! Would support for TYPO3 9 be important for you?

With TYPO3 10 the new AssetCollector could be used to collect the media files that should be preloaded: https://github.com/TYPO3/TYPO3.CMS/blob/2d6ed648ab87185e34eaa0c61c958840396584a1/typo3/sysext/core/Classes/Page/AssetCollector.php#L159

infabo commented 4 years ago

I would not drop support for v9 right now.

s2b commented 4 years ago

I wouldn‘t want to drop support entirely, but new features could be v10 only if it made sense and made things easier.