Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2015
    Posts
    423
    Plugin Contributions
    0

    Default auto generated main menu link flickers on page load

    I am using the UL-generator class to produce the menu list dynamically. I notice when on page load the menu link flickers.

    I don’t think this is a css issue because I removed all the css and still encountering the same issue.

    Does anyone have a recommendation on using this script without it flickering on page load.


    <?php
    // load the UL-generator class and produce the menu list dynamically from there
    require_once (DIR_WS_CLASSES . 'categories_ul_generator.php');
    $zen_CategoriesUL = new zen_categories_ul_generator;
    $menulist = $zen_CategoriesUL->buildTree(true);
    $menulist = str_replace('"level4"','"level5"',$menulist);
    $menulist = str_replace('"level3"','"level4"',$menulist);
    $menulist = str_replace('"level2"','"level3"',$menulist);
    $menulist = str_replace('"level1"','"level2"',$menulist);
    $menulist = str_replace('<li>','<li>',$menulist);
    $menulist = str_replace("</li>\n</ul>\n</li>\n</ul>\n","</li>\n</ul>\n",$menulist);
    echo $menulist;
    ?>

  2. #2
    Join Date
    Jan 2015
    Posts
    423
    Plugin Contributions
    0

    Default Re: auto generated main menu link flickers on page load

    I think I figured it out. Went to includes/classes/categories_ul_generator.php

    changed max level from 0 to 1. Seem to have stopped the flickering.

 

 

Similar Threads

  1. NO more next page .. auto load on scroll
    By jennydutch in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 21 Oct 2014, 10:52 PM
  2. v150 dynamic pop-out CSS menu flickers during page reloads
    By jimproz in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 2 May 2012, 02:50 PM
  3. Menu Link to Main Store Page/Listing
    By dsutton in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 6 Mar 2009, 01:12 AM
  4. Replies: 0
    Last Post: 24 Oct 2006, 02:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR