Skip dns-prefetch images

This commit is contained in:
M66B 2021-05-23 07:47:23 +02:00
parent 3304345871
commit c213cb3e56
1 changed files with 4 additions and 0 deletions

View File

@ -550,6 +550,10 @@ public class ContactInfo {
List<Future<Bitmap>> futures = new ArrayList<>();
for (Element img : imgs) {
// https://developer.mozilla.org/en-US/docs/Web/Performance/dns-prefetch
if ("dns-prefetch".equals(img.attr("rel"))) // gmx.net
continue;
String favicon = ("link".equals(img.tagName())
? img.attr("href")
: img.attr("content"));