Kunena Menu
Why so much code?
- luciano991
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 53
- Thank you received: 1
11 years 4 months ago #28513
by luciano991
Why so much code? was created by luciano991
If you look at the source code on this page:
cdss.dependablewebhost.com
you will see that MaximenuCK generates an enormous amount of code. Is this normal?
Thanks,
Mark
Thanks,
Mark
Please Log in or Create an account to join the conversation.
11 years 4 months ago #28514
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Why so much code?
Hi
this is because you have set the colors on each individual menu item instead of settings the colors from the module styles for all the menu.
But in fact this is not really a problem, is it ?
CEd
this is because you have set the colors on each individual menu item instead of settings the colors from the module styles for all the menu.
But in fact this is not really a problem, is it ?
CEd
Joomlack Webmaster and Developer
The following user(s) said Thank You: luciano991
Please Log in or Create an account to join the conversation.
- luciano991
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 53
- Thank you received: 1
11 years 4 months ago #28535
by luciano991
Replied by luciano991 on topic Why so much code?
So, I just want to clarify. Have I specified too much CSS in my custom.css file? Should have I set my styles in MaximenuCK instead?
And secondly, the amount of code generated doesn't appear to affect page loading although what effect it may eventually have on SEO remains to be seen. However, as a general rule I tend to assume that less is more when it comes to code.
Thanks,
Mark
And secondly, the amount of code generated doesn't appear to affect page loading although what effect it may eventually have on SEO remains to be seen. However, as a general rule I tend to assume that less is more when it comes to code.
Thanks,
Mark
Please Log in or Create an account to join the conversation.
11 years 4 months ago #28564
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Why so much code?
this has nothing to do with the custom.css file
this is the styles created by maximenu from the options that you use in the maximenu params fields.
If you don't load this, then to style your menu you would need to add your css into a css file, this is the same. For me there is no really problem unless you give me technical details about a such problem
this is the styles created by maximenu from the options that you use in the maximenu params fields.
If you don't load this, then to style your menu you would need to add your css into a css file, this is the same. For me there is no really problem unless you give me technical details about a such problem
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
- luciano991
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 53
- Thank you received: 1
11 years 4 months ago #28566
by luciano991
Replied by luciano991 on topic Why so much code?
OK, no I don't see a problem as far as the performance of the site. As I said before, I just get concerned when I see so much code. I don't know why all those color styles need to be inline styles and iterated for each list item. It's the kind of thing you see all the time when major corporate websites are bloated with inline styles for fear that someone using the most obscure web browser on the planet will still be able to see the site rendered properly. It's more of a philosophical thing although with code I will continue to believe that less is more.
I appreciate your feedback on this. We can consider this "problem" solved.
All the best,
Mark
I appreciate your feedback on this. We can consider this "problem" solved.
All the best,
Mark
Please Log in or Create an account to join the conversation.
11 years 4 months ago #28573
by ced1870
As said
Joomlack Webmaster and Developer
Replied by ced1870 on topic Why so much code?
in fact it does the styles for each item only if you set some styles in the menu items. By default the module will not do it. I don't know why all those color styles need to be inline styles and iterated for each list item
As said
you have edited your menu items to apply them the colors, the "best" solution is to use the styles cutomization options in the module to style the menu, and only use the menu item style to override where neededbecause you have set the colors on each individual menu item instead of settings the colors from the module styles for all the menu
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
Time to create page: 0.202 seconds




