mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Rel excludes
This commit is contained in:
parent
2f399d1809
commit
2e2880bb5d
1 changed files with 3 additions and 2 deletions
|
@ -111,8 +111,10 @@ public class ContactInfo {
|
|||
private static final long CACHE_GRAVATAR_DURATION = 2 * 60 * 60 * 1000L; // milliseconds
|
||||
private static final long CACHE_FAVICON_DURATION = 2 * 7 * 24 * 60 * 60 * 1000L; // milliseconds
|
||||
|
||||
// https://css-tricks.com/prefetching-preloading-prebrowsing/
|
||||
// https://developer.mozilla.org/en-US/docs/Web/Performance/dns-prefetch
|
||||
private static final List<String> REL_EXCLUDE = Collections.unmodifiableList(Arrays.asList(
|
||||
"dns-prefetch", "preconnect", "prefetch", "preload", "prerender"
|
||||
"dns-prefetch", "preconnect", "prefetch", "preload", "prerender", "subresource"
|
||||
));
|
||||
|
||||
private ContactInfo() {
|
||||
|
@ -554,7 +556,6 @@ public class ContactInfo {
|
|||
|
||||
List<Future<Bitmap>> futures = new ArrayList<>();
|
||||
for (Element img : imgs) {
|
||||
// https://developer.mozilla.org/en-US/docs/Web/Performance/dns-prefetch
|
||||
String rel = img.attr("rel").trim().toLowerCase(Locale.ROOT);
|
||||
if (REL_EXCLUDE.contains(rel)) // dns-prefetch: gmx.net
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue