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

Extract Block class and do a pre-fetch pass #188

Merged
merged 3 commits into from
Mar 3, 2022

Conversation

julianrubisch
Copy link
Contributor

@julianrubisch julianrubisch commented Feb 18, 2022

Mainly this pulls together everything that reaches out to block in its own class, and, more importantly, does a pre-pass of fetching unique URLs

While this is an improvement in general and might fix some of the multi-fetches occurring, I still saw some instances where the same URL was fetched twice, even from the same elements.

What I can say though is that in the app I'm testing it against, we have a fair amount of touches happening in the class hierarchy, so I think what we're really looking at is another opportunity to look at server side debouncing

cc @andrewerlanger

Copy link
Contributor

@leastbad leastbad left a comment

Choose a reason for hiding this comment

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

I think that we're really close. Great work so far.

javascript/elements/updates_for_element.js Outdated Show resolved Hide resolved
javascript/elements/updates_for_element.js Outdated Show resolved Hide resolved
@julianrubisch julianrubisch merged commit 60146b6 into master Mar 3, 2022
@julianrubisch julianrubisch deleted the updates-for-pre-fetch-pass branch March 3, 2022 19:25
@leastbad
Copy link
Contributor

leastbad commented Mar 4, 2022

Thanks for getting this pushed through!

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.

None yet

2 participants