Skip to content

Add a note for preload asset #12179

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

Merged
merged 1 commit into from
Aug 16, 2019
Merged

Add a note for preload asset #12179

merged 1 commit into from
Aug 16, 2019

Conversation

alamirault
Copy link
Contributor

This PR add a note about how to preload asset in Sf 3.4.

Indeed it was not explained. There was just a symfony blog article about it : https://symfony.com/blog/new-in-symfony-3-3-asset-preloading-with-http-2-push

Moreover preload('build/style.css', { as: 'style' }) generates a good link in Sf4 but not in sf3 (relative instead of absolute). I think is confusing.

I hope it can help other developers.

@OskarStark OskarStark added this to the 3.4 milestone Aug 15, 2019
@OskarStark
Copy link
Contributor

Thank you Antoine.

OskarStark added a commit that referenced this pull request Aug 16, 2019
This PR was merged into the 3.4 branch.

Discussion
----------

Add a note for preload asset

This PR add a note about how to preload asset in Sf 3.4.

Indeed it was not explained. There was just a symfony blog article about it : https://symfony.com/blog/new-in-symfony-3-3-asset-preloading-with-http-2-push

Moreover `preload('build/style.css', { as: 'style' })` generates a good link in Sf4 but not in sf3 (relative instead of absolute). I think is confusing.

I hope it can help other developers.

Commits
-------

d9b88d7 Add a note for preload asset
@OskarStark OskarStark merged commit d9b88d7 into symfony:3.4 Aug 16, 2019
OskarStark added a commit that referenced this pull request Aug 16, 2019
OskarStark added a commit that referenced this pull request Aug 16, 2019
* 3.4:
  Tweaks #12179
  Add a note for preload asset
OskarStark added a commit that referenced this pull request Aug 16, 2019
* 4.3:
  Tweaks #12179
  Add a note for preload asset
OskarStark added a commit that referenced this pull request Aug 16, 2019
* 4.4:
  Tweaks #12179
  Add a note for preload asset
@alamirault alamirault deleted the fix-preload branch March 31, 2023 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants