-
Notifications
You must be signed in to change notification settings - Fork 536
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
towardsdatascience.com 无法load大图 #1104
Comments
这个站因为没有适配出现了无法自动识别的问题,而且一般来说, 英文类的页面大多都有 惰性加载 的功能,一般来说处理这些图片均存在一定程度的问题。 我先记新站吧。 |
此站使用 Medium Blog平台。 (参考 Websites using Medium) 此平台的文章中,图片都是懒加载,页面浏览到图片区域后才进行加载。 这个和 #1099 的情况类似,解决思路也类似。 但与知乎页面的区别是,知乎页面的 思考是否有更多站点的图片懒加载,是类似的元素结构? 结构举例
<figure class="ma mb mc md me fo fd fe paragraph-image">
<div class="fq fr ee fs aj">
<div class="fd fe ok">
<div class="fw s ee er">
<div class="ol fy s">
<div class="dn abu t u v cy aj bl fu fv">
<img alt="Image for post" class="t u v cy aj fz ga gb" src="https://miro.medium.com/max/60/1*AC4wPGPzPZPiogJrJ3U26g.png?q=20" width="1003" height="540" />
</div>
<img alt="Image for post" class="dd ft t u v cy aj c" width="1003" height="540" />
<noscript>
<img
alt="Image for post"
class="t u v cy aj"
src="https://miro.medium.com/max/2006/1*AC4wPGPzPZPiogJrJ3U26g.png"
width="1003"
height="540"
srcset="
https://miro.medium.com/max/552/1*AC4wPGPzPZPiogJrJ3U26g.png 276w,
https://miro.medium.com/max/1104/1*AC4wPGPzPZPiogJrJ3U26g.png 552w,
https://miro.medium.com/max/1280/1*AC4wPGPzPZPiogJrJ3U26g.png 640w,
https://miro.medium.com/max/1400/1*AC4wPGPzPZPiogJrJ3U26g.png 700w
"
sizes="700px"/>
</noscript>
</div>
</div>
</div>
</div>
</figure>
<figure data-size="normal">
<noscript>
<img
src="https://pic1.zhimg.com/50/v2-24142c274a200ca02148e605cbcce592_hd.gif?source=1940ef5c"
data-caption="" data-size="normal" data-rawwidth="643" data-rawheight="529"
data-thumbnail="https://pic2.zhimg.com/50/v2-24142c274a200ca02148e605cbcce592_hd.jpg?source=1940ef5c" width="643"
data-original="https://pic3.zhimg.com/v2-24142c274a200ca02148e605cbcce592_r.jpg?source=1940ef5c" />
</noscript>
<div>
<div data-size="normal" data-za-detail-view-path-module="GifItem">
<div class="sr-rd-content-center">
<img class=""
src="https://pic2.zhimg.com/50/v2-24142c274a200ca02148e605cbcce592_hd.gif?source=1940ef5c">
</div>
</svg> //无用,省略掉
</div>
</div>
</figure> 共同点
且 通用思路 $('figure noscript').each(function(){
var noscript = $(this).text();
$(this).parent().empty().append(noscript);
}); 这个思路需要去考察更多懒加载图片的站点,来评估是否可以作为通用处理方法。 |
此问题可以通过 2.2.0.520 彻底解决。 新增加了专门针对 惰性加载图片的解析方案,如下图 注意:使用此功能时会出现维基百科的一些问题,解决方案 请看这里 简悦 2.2.0 请注意嗨,如果你是 2.2.0 用户,当前版本也修复了 2.2.0 时的一些错误,如:特定条件下任意页面自动进入阅读模式 引起无法使用维基百科的问题 聚焦模式无法使用导出服务 未启用标注模式无法复制 本次更新内容
一些 2.2.0 相关性的教程
更新日志
一个建议
|
https://towardsdatascience.com/negative-binomial-regression-f99031bb25b4
只会显示小图,大图load不出来
![image](https://user-images.githubusercontent.com/3938751/92675878-07fbd080-f353-11ea-8d47-41456a40cb11.png)
The text was updated successfully, but these errors were encountered: