Mega menu loads after few seconds
Permalink Browser Info Environment
Hi There,
This is critical please!
We have installed the mega menu to the site and it loads after few seconds of the page load. Can you please let us know an update/advise on a solution?
This is critical please!
We have installed the mega menu to the site and it loads after few seconds of the page load. Can you please let us know an update/advise on a solution?
Type: | Discussion |
---|---|
Status: | In Progress |
Hi JB,
Thanks for getting back to us! :)
Unfortunately it didn't work :( Any other advise?
Thanks for getting back to us! :)
Unfortunately it didn't work :( Any other advise?
If you can provide the URL where you've installed the block I can take a closer look. Other than that, you can also try:
1) Turn on C5 caching - this way the block doesn't have to cycle through every page on your site to build the menu on each page load.
2) Test the menu on another page with minimal content to see if other content is slowing down the page load.
3) Same as point 2, but test with a different theme (one of the default themes that ship with C5).
Looking at Google Chrome's Developer Tools will help to determine which elements are slowing the page load.
Hope this helps.
JB
1) Turn on C5 caching - this way the block doesn't have to cycle through every page on your site to build the menu on each page load.
2) Test the menu on another page with minimal content to see if other content is slowing down the page load.
3) Same as point 2, but test with a different theme (one of the default themes that ship with C5).
Looking at Google Chrome's Developer Tools will help to determine which elements are slowing the page load.
Hope this helps.
JB
Hi JB,
Thanks for the advise! :)
Actually I think the first fix did work but may be it had some caching and showed the result after a couple of days.
Thanks once again ! :)
Thanks for the advise! :)
Actually I think the first fix did work but may be it had some caching and showed the result after a couple of days.
Thanks once again ! :)
However, a quick workaround is to show the menu at an earlier stage.
Around line 267 or 300 of view.php (depending on the version of the block) in this block folder is the DOM event which triggers the display of the menu.
Rather than waiting for the page "onload" event to occur, you can use replace with this line of code:
Old:
New:
Hope this helps.
JB