Hello. I have a problem with a template. The pagespeed indicator is giving an error.

"Avoid an excessive DOM size 1,774 elements. "


The pagespeed indicator gives an error:

"Background and foreground colors do not have a sufficient contrast ratio."


This is where I can't correct a bug (pricing module):

"Background and foreground colors do not have a sufficient contrast ratio."

On pages where this price module is not present, this bug is not observed.
I have not been able to fix this problem, please help.

    vitalik20 "Avoid an excessive DOM size 1,774 elements. "

    I believe this issue is arising from the incorporation of JA ACM modules within the mega menu. This setup results in multiple levels of elements being loaded, making it challenging to mitigate the problem in this particular scenario.

      vitalik20 It looks like when setting so many levels in the off-canvas menu, it exceeds the Maximum DOM nesting depth as this speedtest tool recommends. You can try to limit the dropdown level by set the End level in menu module in off-cavas position and see how it goes.

      vitalik20 This is where I can't correct a bug (pricing module):
      "Background and foreground colors do not have a sufficient contrast ratio."

      On pages where this price module is not present, this bug is not observed.

      I'm not entirely sure of this error, could you clarify in more details of how you want it should be?

        saguaros

        I'm not entirely sure of this error, could you clarify in more details of how you want it should be?

        I want. you to check the said bug, and tell me finally in which place I need to change the background color to remove this bug.

        Avoid an excessive DOM: it's done, thank you.

          vitalik20 It depends on how you want to change the color as well, you can tell me which color you want to use so I can suggest CSS change.

            saguaros I can change the color myself, but I don't understand the exact location of the bug described above

            Hi

            The screenshots that pagespeed tool reported doesn't make sense with me either.

            https://dabrabud.by/pesok on this page, you can try to change the background / color of these and check again.

            Write a Reply...
            You need to Login to view replies.