instantpage / instant.page

Make your site’s pages instant in 1 minute and improve your conversion rate by 1%
https://instant.page
MIT License
6.05k stars 205 forks source link

Checking for the existence of a prefetch #123

Open vowonderful opened 9 months ago

vowonderful commented 9 months ago

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.