From 2ee54b522057c458c7f1e0acb424e5cc7d853ee0 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 15 Sep 2018 18:25:58 +0200 Subject: [PATCH] Replaced fadeIn with show to make transitions less CPU heavy on RPi --- platypush/backend/http/static/js/widgets/image-carousel.js | 2 +- platypush/backend/http/static/js/widgets/rss-news.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platypush/backend/http/static/js/widgets/image-carousel.js b/platypush/backend/http/static/js/widgets/image-carousel.js index 505ee044..de95196e 100644 --- a/platypush/backend/http/static/js/widgets/image-carousel.js +++ b/platypush/backend/http/static/js/widgets/image-carousel.js @@ -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) { diff --git a/platypush/backend/http/static/js/widgets/rss-news.js b/platypush/backend/http/static/js/widgets/rss-news.js index 8cf46c56..576d5222 100644 --- a/platypush/backend/http/static/js/widgets/rss-news.js +++ b/platypush/backend/http/static/js/widgets/rss-news.js @@ -59,7 +59,7 @@ $(document).ready(function() { $newsElement.find('.article').remove(); } - $article.hide().appendTo($newsElement).fadeIn(); + $article.hide().appendTo($newsElement).show(); if (updateNewsList) { getNews();