April 21st, 2013AWM: How can I optimize the loading of menus in the webpage?
Knowledge Base support case for AllWebMenus, abstracted and stripped of all user’s private info.
Initial Email From: Tomaz
Initial Email Subject: allwebmenus few answers needed
Support Case Month: February 2013
I would like some issues in allwebmenus optimized. Or appreciate your instructions.
Problem is quite long upload time.
1.- I am using two menus on every page. horizontal and vertical. (check kamenaric.si)
They are mostly using same gif, and awmlib2.js, but files are saved in different subfolders.
(awmdata-x +awmdata-y) That doubles download requests and time.
How could AWM be configured so, that identical files from different menus will be called from same URL?
How could I know, if there are other files identical (I know what buttons I use, but what is with awmlib-s?
2.- Could I create compressed .js in AWM? Or does AWM include this option?
3.- Could I move code to the end of <body> to load at the end of html?
4.- Any other method to improve speed of menu loading? Reducing no. of .js files maybe?
Reply From: Likno Customer Support
1) Ideally you should not change the AllWebMenus folder settings. You should only change the compiled menu name (which also automatically changes the image submenu) and leave the folder settings to “default”. This way all the menus will use the same library files and load faster. The “awmlib-x” files are different depending on the viewer browser and only one of them is loaded for each user.
2) I am afraid that this option is not included, but if your browser supports zipped resources then you can do this by manually zipping the compiled files. We do have other users that are doing this successfully, but I am afraid I do not know the details of this implementation.
3) You can do this if you want but you have to make sure that the Linking Code is a direct child of the <body> and not within another page element (e.g. <div>). Alternatively, you can select the following option, which will force the menu to load after the page “onload” event is triggered:
4) The JS files that are loaded are only two, the “menu.js” and the “awmlib-x” that corresponds to the current browser, so this cannot be improved further. One thing that you should also keep in mind is that using heavy images in the menu will slow the loading process. If speed is a crucial factor, it is best to use a text-only theme that uses background colors and borders instead of images.
Likno Customer Support