ppoffice / hexo-theme-icarus

A simple, delicate, and modern theme for the static site generator Hexo.
https://ppoffice.github.io/hexo-theme-icarus/
MIT License
6.4k stars 1.55k forks source link

是否有考虑加入预加载功能时文章打开速度更快 #822

Open HackerYunen opened 3 years ago

HackerYunen commented 3 years ago

确保你在提交功能建议之前仔细阅读了Hexo文档Icarus用户指南,和GitHub issues来了解你的建议是否已经被他人提出过。

你的功能建议与某个使用问题相关么?请详述。

当鼠标指针停留在文章卡片上时,预先加载其文章内容,达到快打开的效果。

描述你想要的解决方案

类似如图的效果: 2.gif

图中例子网站:blog.skk.moe

描述你考虑过的替代办法

额外上下文

vanillapod-ze commented 2 years ago

@HackerYunen

You can use hexo Injector to inject a script with instant.page, This is an easy work. (same as how skk's blog preload works)

My solution below.

This article helps. I create a custom.js, then add code block from instant Page, it works. In my experience, instance-page will be blocked by some ad-blocker (likes uBlock-Origin and etc.). But you can host this script with CDN

JIeJaitt commented 9 months ago

@vanillapod-ze thk u,because this I success