Kunena Menu
stopping inline css and js from maximenu
11 years 3 months ago #28917
by silk
stopping inline css and js from maximenu was created by silk
Hi, Im optimising the pagespeed on my site, which includes having to remove all the inline css and js.
Currently I have the following, which I have placed in external css and js files, now I just need to stop maximenu placing them inline in the head.
Many thanks in advance!
CSS:
div#cmenu ul.maximenuck li.maximenuck.item124.level1 > div.floatck,
div#cmenu .maxipushdownck div.floatck.submenuck124 { background: #232C35 !important;-moz-border-radius: 5px 5px 5px 5px !important;-webkit-border-radius: 5px 5px 5px 5px !important;border-radius: 5px 5px 5px 5px !important;border-top: #800080 1px solid !important;border-right: #800080 1px solid !important;border-bottom: #800080 1px solid !important;border-left: #800080 1px solid !important; }
JS:
jQuery(document).ready(function($){$('#cmenu').DropdownMaxiMenu({fxtransition : 'linear',dureeIn : 0,dureeOut : 20,menuID : 'coursemenu',testoverflow : '1',orientation : 'horizontal',behavior : 'mouseover',opentype : 'slide',fxdirection : 'normal',directionoffset1 : '30',directionoffset2 : '30',showactivesubitems : '0',ismobile : 0,menuposition : '0',effecttype : 'dropdown',fxduration : 300});});
Currently I have the following, which I have placed in external css and js files, now I just need to stop maximenu placing them inline in the head.
Many thanks in advance!
CSS:
div#cmenu ul.maximenuck li.maximenuck.item124.level1 > div.floatck,
div#cmenu .maxipushdownck div.floatck.submenuck124 { background: #232C35 !important;-moz-border-radius: 5px 5px 5px 5px !important;-webkit-border-radius: 5px 5px 5px 5px !important;border-radius: 5px 5px 5px 5px !important;border-top: #800080 1px solid !important;border-right: #800080 1px solid !important;border-bottom: #800080 1px solid !important;border-left: #800080 1px solid !important; }
JS:
jQuery(document).ready(function($){$('#cmenu').DropdownMaxiMenu({fxtransition : 'linear',dureeIn : 0,dureeOut : 20,menuID : 'coursemenu',testoverflow : '1',orientation : 'horizontal',behavior : 'mouseover',opentype : 'slide',fxdirection : 'normal',directionoffset1 : '30',directionoffset2 : '30',showactivesubitems : '0',ismobile : 0,menuposition : '0',effecttype : 'dropdown',fxduration : 300});});
Please Log in or Create an account to join the conversation.
11 years 3 months ago #28918
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic stopping inline css and js from maximenu
Hi
you can paste the code where you want and
- disable the plugin maximenu params to remove the inline styles
- disable the JS effects to remove the JS code
but honestly, I don't think that this will really improve anything ...
CEd
you can paste the code where you want and
- disable the plugin maximenu params to remove the inline styles
- disable the JS effects to remove the JS code
but honestly, I don't think that this will really improve anything ...
CEd
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
Time to create page: 0.190 seconds




