aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-07-21 08:17:45 +0000
committerMario <mario@mariovavti.com>2023-08-27 19:50:39 +0200
commitf203fcc92ef1d1571547d1e7d9e30453a00a300c (patch)
tree76c9879a21bccecde0dd0b2a51bfba05dd342710
parent0b20069c2040dd67522ee076195bf82e218dbd80 (diff)
downloadvolse-hubzilla-f203fcc92ef1d1571547d1e7d9e30453a00a300c.tar.gz
volse-hubzilla-f203fcc92ef1d1571547d1e7d9e30453a00a300c.tar.bz2
volse-hubzilla-f203fcc92ef1d1571547d1e7d9e30453a00a300c.zip
more performance improvements
(cherry picked from commit 4b1384be832b0a745eeb8ac94cba6b00edc4eb64)
-rw-r--r--view/js/main.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 13fc29cd4..c463b1f59 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -807,7 +807,7 @@ function updateConvItems(mode,data) {
}
// reset rotators and cursors we may have set before reaching this place
- $('.like-rotator').hide();
+
$("#page-spinner").hide();
$("#profile-jot-text-loading").hide();
@@ -842,8 +842,7 @@ function scrollToItem() {
}
function collapseHeight() {
-
- $(".wall-item-content, .directory-collapse").each(function() {
+ $(".wall-item-content:not('.divmore_checked'), .directory-collapse:not('.divmore_checked')").each(function(i) {
var orgHeight = $(this).outerHeight(true);
var id = $(this).attr('id')
var open = ((expanded_items.indexOf($(this).attr('id')) === -1) ? false : true);
@@ -871,6 +870,7 @@ function collapseHeight() {
$(this).addClass('divmore');
}
}
+ $(this).addClass('divmore_checked');
});
}