You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
普通适配
TODO:
高级适配
TODO:
懒加载图片的处理
现代网页会有很多图片、视频等富媒体信息来丰富页面内容种类,而大量图片会导致页面加载时间变长体验变差,且增加图片服务器的流量压力。因此很多站点使用了懒加载图片的方式,来延迟加载图片。
但这种技术会影响简悦获取图片信息,因此需要进行一些特殊处理。
单页面应用(SPA)
单页面应用的内容,会从服务器动态加载然后显示,而很多单页面应用中不同文章的网址(URL)是相同的,这就会导致多篇文章无法重复加入稍后读。
为单页面应用站点制作适配规则时,除了要处理懒加载的问题,还要额外处理不同文章的URL,来确保不同文章的URL是不同的,便可以让不同的文章顺利加入稍后读。
特殊适配
TODO:
注意事项
隐藏列表对「稍后读 - 阅读模式」的影响
文章被加入到稍后读后,如果导出
html
到了output
目录下,且稍后读中开启了『优先加载本地的离线文件』。在进入「稍后读 - 阅读模式」界面后,简悦会通过同步助手从本地的导出目录(
output
目录)读取html文件,然后在处理过程中,会执行文章原站点适配规则的隐藏列表,如果适配规则中隐藏列表有特殊的js代码,可能会导致「稍后读 - 阅读模式」出现非预期的异常问题。「稍后读」中,
a
标签链接前缀为//
时会导致错误链接a标签的链接前缀为
//
时,浏览器会自动补充为当前页面相同协议。//github.com
//github.com
//github.com
//github.com
「稍后读」中,非公开的页面资源,在已登录状态下可加载,未登陆则无法加载
以b站笔记功能举例:
如果笔记所属的b站账号不是当前已登录的b站账号,则图片会无法显示或显示错误。因为笔记的图片不是当前账号下的。
Beta Was this translation helpful? Give feedback.
All reactions