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

Checking for the existence of a prefetch #123

Open
wants to merge 12 commits into
base: v5
Choose a base branch
from

Conversation

vowonderful
Copy link

Hi. I'm not well versed in the github system, but I want to offer an idea to improve the algorithm.
It happens that the link tag with the prefetch attribute for the link has already been set for critical pages by other plugins and was originally in the document. Therefore, such links have already been downloaded and saved in the browser cache, and they do not need to be re-downloaded when hovering over the link. After all, this forces you to delete the cache from the first request and forces you to load the page again. And the click may occur before the re-upload is completed. And we will regret that we deleted the first download. Therefore, it is better to avoid deleting already downloaded pages.

dieulot and others added 12 commits August 17, 2023 16:17
Removes distracting console "error"
It happens that the link tag with the prefetch attribute for the link has already been set for critical pages by other plugins and was originally in the document. Therefore, such links have already been downloaded and saved in the browser cache, and they do not need to be re-downloaded when hovering over the link. After all, this forces you to delete the cache from the first request and forces you to load the page again. And the click may occur before the re-upload is completed. And we will regret that we deleted the first download. Therefore, it is better to avoid deleting already downloaded pages.
Checking for the existence of a prefetch
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.

2 participants