Issue Bug Closed

#57953Rendering time of HMENU is really bad, maybe bug?

Florian Schwaiger 04/15/14, 17:55 updated 10/20/22, 08:33

Description

We use the following menu on every page.

Because of expAll = 1 on the first two levels, the menu is by far the slowest element on the pages. This Bug has been adressed in Ticket (http://forge.typo3.org/issues/23486) so far, but was closed due to missing feedback.
Also I am unsure whether this is actually the problem, but in combination with two other menus on the page it is responsible for 90% of the processing time.

60 = HMENU
    60 {
        entryLevel = 1

        1 = TMENU
        1 {
            expAll = 1

            NO.allWrap = <li>|</li>
            NO.ATagTitle.field = abstract // description // title

            ACT = 1
            ACT.wrapItemAndSub = <li class="active">|</li>
            ACT.ATagTitle.field = abstract // description // title

            IFSUB = 1
            IFSUB.ATagTitle.field = abstract // description // title
            IFSUB.stdWrap.wrap = |&nbsp;<span class="text-muted">/ ...</span>
            IFSUB.stdWrap2.wrap = |<ul class="nav collapse">
            IFSUB.wrapItemAndSub (
                <li class="sub">
                    <a href="#" title="Untermenü aufklappen" class="sidebar-dropdown-btn"
                                data-toggle="collapse" data-parent="#sidebar .panel-body.nav">
                        <span class="caret"></span>
                    </a>
                    |</ul>
                </li>
            )

            ACTIFSUB < .IFSUB
            ACTIFSUB.stdWrap2.wrap = |<ul class="nav collapse in">
            ACTIFSUB.wrapItemAndSub (
                <li class="active sub">
                    <a href="#" title="Untermenü aufklappen" class="sidebar-dropdown-btn"
                                data-toggle="collapse" data-parent="#sidebar .panel-body.nav">
                        <span class="caret"></span>
                    </a>
                    |</ul>
                </li>
            )

            CURIFSUB < .ACTIFSUB

            wrap = <ul id="sidebar-menu" class="panel-body nav">|</ul>
        }

        2 < .1
        2.wrap >

        3 = TMENU
        3 {
            NO.allWrap = <li>|</li>
            NO.ATagTitle.field = abstract // description // title

            ACT = 1
            ACT.wrapItemAndSub = <li class="active">|</li>
            ACT.ATagTitle.field = abstract // description // title

            ACTIFSUB < .ACT
            CURIFSUB < .ACT
        }

        wrap = <div id="sidebar-menu" class="panel-collapse collapse in">|</div>
    }

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.