Replaced fadeIn with show to make transitions less CPU heavy on RPi

This commit is contained in:
Fabio Manganiello 2018-09-15 18:25:58 +02:00
parent 5762c51019
commit 2ee54b5220
2 changed files with 2 additions and 2 deletions

View file

@ -32,7 +32,7 @@ $(document).ready(function() {
}
$newImg.css('max-height', '100%');
$newImg.remove().appendTo($imgContainer).fadeIn();
$newImg.remove().appendTo($imgContainer).show();
});
if (processedImages == images.length-1) {

View file

@ -59,7 +59,7 @@ $(document).ready(function() {
$newsElement.find('.article').remove();
}
$article.hide().appendTo($newsElement).fadeIn();
$article.hide().appendTo($newsElement).show();
if (updateNewsList) {
getNews();