Hi,
we have some real trouble with the code that is loaded in the views. Currently I am doing a redesign of our company page together with Angie Radtke and we want to disable all unnecessary JS and CSS code. Here are some questions or comments.
1. There is no possibility to disable category.css and and item.css! Well, I just deleted the content of the files but there are queries that are not needed. There should be a possibility to disable these files completely in case some frameworks like LESS are used.
2. Voting is everywhere: I have disabled voting everywhere but it is still there. The files fcvote.css, fcvote.js, also fcfav.js and some code
Code:
.voting .fcvote {line-height:16px;}
.voting .fcvote-label {margin-right: 6px;}
.voting .fcvote ul {height:16px; position:relative !important; left:0px !important;}
.voting .fcvote ul, .voting .fcvote ul li a:hover, .voting .fcvote ul li.current-rating {background-image:url(/components/com_flexicontent/assets/images/star-small.png)!important;}
.voting .fcvote ul li a, .voting .fcvote ul li.current-rating {height:16px;line-height:16px;}
.fcvote li a.star1 { width: 20%; z-index: 6; }
.fcvote li a.star2 { width: 40%; z-index: 5; }
.fcvote li a.star3 { width: 60%; z-index: 4; }
.fcvote li a.star4 { width: 80%; z-index: 3; }
.fcvote li a.star5 { width: 100%; z-index: 2; }
is loaded. We are having troubles with all kind of JavaScript conflicts. I believe that voting is one of the least needed features for a business homepage.
3. Some tooltip and more voting code is loaded:
Code:
jQuery(function($) {
$('.hasTip').each(function() {
var title = $(this).attr('title');
if (title) {
var parts = title.split('::', 2);
$(this).data('tip:title', parts[0]);
$(this).data('tip:text', parts[1]);
}
});
var JTooltips = new Tips($('.hasTip').get(), {"maxTitleChars": 50,"fixed": false});
});
var fcvote_rfolder = "";
var fcfav_rfolder = '';
var fcfav_text=Array(
'Ihr Browser unterstützt kein Ajax',
'laden',
'Zu den Favoriten hinzugefügt',
'Sie müssen sich einloggen, um diesen Beitrag zu den persönlichen Favoriten hinzuzufügen.',
'Von Ihren Favoriten entfernt.',
'Benutzer'
);
Is there a possibility to disable this code?
Please do not understand me wrong. I love FC, it's just hard and lots of work to optimise the code or JavaScripts with so much non needed files/code.
Rooney