don't set img src in notifications to blank
This commit is contained in:
parent
3a13aba62e
commit
5d30008ab3
6 changed files with 18 additions and 6 deletions
|
@ -188,7 +188,11 @@
|
||||||
|
|
||||||
$("img[data-src]", nnm).each(function(i, el){
|
$("img[data-src]", nnm).each(function(i, el){
|
||||||
// Add src attribute for images with a data-src attribute
|
// Add src attribute for images with a data-src attribute
|
||||||
$(el).attr('src', $(el).data("src"));
|
// However, don't bother if the data-src attribute is empty, because
|
||||||
|
// an empty "src" tag for an image will cause some browsers
|
||||||
|
// to prefetch the root page of the Friendica hub, which will
|
||||||
|
// unnecessarily load an entire profile/ or network/ page
|
||||||
|
if($(el).data("src") != '') $(el).attr('src', $(el).data("src"));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
js/main.min.js
vendored
2
js/main.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -190,7 +190,11 @@
|
||||||
|
|
||||||
$j("img[data-src]", nnm).each(function(i, el){
|
$j("img[data-src]", nnm).each(function(i, el){
|
||||||
// Add src attribute for images with a data-src attribute
|
// Add src attribute for images with a data-src attribute
|
||||||
$j(el).attr('src', $j(el).data("src"));
|
// However, don't bother if the data-src attribute is empty, because
|
||||||
|
// an empty "src" tag for an image will cause some browsers
|
||||||
|
// to prefetch the root page of the Friendica hub, which will
|
||||||
|
// unnecessarily load an entire profile/ or network/ page
|
||||||
|
if($j(el).data("src") != '') $j(el).attr('src', $j(el).data("src"));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
notif = eNotif.attr('count');
|
notif = eNotif.attr('count');
|
||||||
|
|
2
view/theme/frost-mobile/js/main.min.js
vendored
2
view/theme/frost-mobile/js/main.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -182,7 +182,11 @@
|
||||||
|
|
||||||
$j("img[data-src]", nnm).each(function(i, el){
|
$j("img[data-src]", nnm).each(function(i, el){
|
||||||
// Add src attribute for images with a data-src attribute
|
// Add src attribute for images with a data-src attribute
|
||||||
$j(el).attr('src', $j(el).data("src"));
|
// However, don't bother if the data-src attribute is empty, because
|
||||||
|
// an empty "src" tag for an image will cause some browsers
|
||||||
|
// to prefetch the root page of the Friendica hub, which will
|
||||||
|
// unnecessarily load an entire profile/ or network/ page
|
||||||
|
if($j(el).data("src") != '') $j(el).attr('src', $j(el).data("src"));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
notif = eNotif.attr('count');
|
notif = eNotif.attr('count');
|
||||||
|
|
2
view/theme/frost/js/main.min.js
vendored
2
view/theme/frost/js/main.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue