View Single Post
  #5  
Old 05-03-2017, 03:45 AM
 
xgarb xgarb is offline
 

eXpert
  
Join Date: Jul 2004
Location: UK
Posts: 263
 

Default Re: Load mobile menu on click via AJAX

Ideally the latest version of mmenu needs to be add to x-cart and the CSS moved out of the customer/css/styles.less file so changes can be made more easily to the menu.

It's an amazing menu and there are lots of things that can be done with it.

The main jquery.mmenu.js file in the current x-cart also contains un-needed js so this could be lightened up.

The best solution would be for the mobile menu to lazy load the required JS and CSS if a smaller screen is detected (I realise there are problems with this). Then request each menu level as requested (AJAX to a PHP script with caching). This would keep things quick and light and only necessary stuff would be loaded each time.
__________________
Core version: 5.5.xx
Reply With Quote