-
AuthorPosts
-
November 22, 2023 at 2:07 pm #1426269
Hello, we are currently using WP Rocket and are encountering performance problems in this combination when the fold/unfold function for text blocks is active. Since the function comes from the core of the theme, we can’t really do anything about it at the moment and are forced to exclude the entire core from the optimization in WP Rocket. Unfortunately, this means that the site performs extremely poorly in terms of pagespeed.
The feature is relatively new. Are there any other experience reports or known issues? How can this be solved without losing the fold/unfold function?
Many thanks in advance for your help.
November 23, 2023 at 6:33 am #1426318Hey emilconsor,
Thank you for the inquiry.
Do you also have the Enfold > Performance > File Compression settings enabled? You might need to disable these settings when the cache plugin’s CSS/JS optimization options are turned on. We didn’t find any element with the fold/unfold option when we checked the page above, but it looks like you have found an alternative.
Best regards,
IsmaelNovember 23, 2023 at 5:03 pm #1426355Hi, thanks for checking.
The feature was temporarily deactivated because it was causing problems. This is not a real alternative but rather an emergency solution.
We have not activated file compression.
Regards
November 24, 2023 at 10:02 am #1426381Hi,
Thank you for the update.
Is there a staging version of the site? Also, where can we find check the element with the fold/unfold option? We couldn’t find any on the page above. Please provide the link to the staging site and post the login details in the private field.
Best regards,
IsmaelMarch 21, 2024 at 1:32 pm #1437780Hi,
sorry for the long wait.
We have a staging version. I’ve put the link in the private content.The fold/unfold function for text blocks is currently active for the text below “Einfach mal raus und alles hinter sich lassen…”.
March 22, 2024 at 7:37 am #1437978Hi,
Thank you for the update.
We get an error in the console when the WP Rocket plugin is activated. The error is generated from the themes/SI-SUITES/js/custom.js file:
jQuery(document).ready(function() { var sections = jQuery('.avia-section') , menu = jQuery('.av-submenu-container') , nav_height = menu.outerHeight(); jQuery(window).on('scroll', function() { var cur_pos = jQuery(this).scrollTop(); var activeMenuItem = menu.find('.active-menu-item'); sections.each(function() { var section = jQuery(this); var top = section.offset().top - 300; var bottom = top + section.outerHeight(); if (cur_pos >= top && cur_pos <= bottom) { var activeLink = menu.find('a[href="#' + section.attr('id') + '"]'); activeMenuItem.removeClass('active-menu-item'); activeLink.addClass('active-menu-item'); if (activeLink) { var activeItemOffset = activeLink.offset().left - menu.offset().left; menu.scrollLeft(activeItemOffset) } } }) }) })
Did you add this script? Please remove the script temporarily, then check the page again.
Best regards,
IsmaelApril 10, 2024 at 11:18 am #1439641Hi Ismael,
I’ve removed the code from the staging site but I’m not entirely sure what that accomplishes.
Sure now the console error is gone but that doesn’t make the fold/unfold function from enfold anymore performance friendly.
Or am I missing something?April 11, 2024 at 10:27 am #1439722 -
AuthorPosts
- You must be logged in to reply to this topic.