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

Investigate server performance when Yoast SEO activated #28

Open
bobbingwide opened this issue May 9, 2022 · 1 comment
Open

Investigate server performance when Yoast SEO activated #28

bobbingwide opened this issue May 9, 2022 · 1 comment
Assignees
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@bobbingwide
Copy link
Owner

In my local development environment I've been developing the theme without WordPress SEO being activated.
I activated it for use by the sb-breadcrumbs-block and the server response has more than doubled. Why's this?

@bobbingwide bobbingwide added help wanted Extra attention is needed question Further information is requested labels May 9, 2022
@bobbingwide bobbingwide self-assigned this May 9, 2022
@bobbingwide
Copy link
Owner Author

One of the things I noticed when using Firefox is that when viewing the home page, there's a second request to load page/2
This is due to the <link rel="next" href="[https://s.b/bigram/page/2/](view-source:https://s.b/bigram/page/2/)" /> which Yoast SEO adds to the page during wp_head processing.

This prefetching is a feature of Firefox.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Link_prefetching_FAQ

The link can be filtered out by hooking into wpseo_next_rel_link.
But there's no context passed to the filter other than the link itself.
So implementing this hook might be an all or nothing thing.

The question is: Does Firefox remember what's been requested... so that if the user clicks on the page 2 link the request isn't performed again. How long before Firefox clears its cache of prefetched pages?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant