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

SPT: Fetch Assets for blocks #35588

Merged
merged 1 commit into from
Aug 20, 2019
Merged

Conversation

marekhrabe
Copy link
Contributor

Changes proposed in this Pull Request

This adds a utility function that receives blocks, automatically looks for images in them, fetches them (if there are any) and returns the same blocks with assets updated to use the local ones.

This PR is split from #34839 — it's a piece of code that could be merged separately first to keep the integration PR easier to rebase and review.

Testing instructions

This PR only includes the functions, not how they are called. You can test the functionality in #34839. The file ensure-assets.js is copied verbatim from that PR.

@marekhrabe marekhrabe added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Aug 19, 2019
@marekhrabe marekhrabe requested review from a team as code owners August 19, 2019 23:26
@marekhrabe marekhrabe self-assigned this Aug 19, 2019
@matticbot
Copy link
Contributor

@matticbot
Copy link
Contributor

This PR does not affect the size of JS and CSS bundles shipped to the user's browser.

Generated by performance advisor bot at iscalypsofastyet.com.

Copy link
Member

@obenland obenland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds one file, is not called from anywhere. Let's get this in and iterate

@obenland obenland added [Status] Ready to Merge and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Aug 20, 2019
@marekhrabe marekhrabe merged commit a8dbb71 into master Aug 20, 2019
@marekhrabe marekhrabe deleted the add/fse-spt-ensure-assets-util branch August 20, 2019 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants