Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: preload images #74

Open
infabo opened this issue Nov 4, 2020 · 4 comments
Open

Idea: preload images #74

infabo opened this issue Nov 4, 2020 · 4 comments

Comments

@infabo
Copy link
Contributor

infabo commented Nov 4, 2020

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/

  • collect images-to-preload (a registry for example)
  • finally add link header(s) for each registered image in a dedicated middleware
@LeoniePhiline
Copy link
Contributor

That would be awesome.

@s2b
Copy link
Collaborator

s2b commented Nov 4, 2020

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
Copy link
Contributor Author

infabo commented Nov 5, 2020

I would not drop support for v9 right now.

@s2b
Copy link
Collaborator

s2b commented Nov 5, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants