Disabling everything

More
10 years 5 months ago #51352 by Rooney
Disabling everything was created by Rooney
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

Joomla! 3.9.24 and FC 3.3.9

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #51374 by micker
Replied by micker on topic Disabling everything
in global config did you try disable javascript and css ?
and after doing same thing in all module used

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #51379 by ggppdk
Replied by ggppdk on topic Disabling everything
Hello

2. in upcoming version, all frontend tooltips have been already updated to use J3.x bootstrap tooltips

to disable tooltip, you need what micker said
- disable in component (First TAB of component parameters, near top)
- disable in all FLEXIcontent modules


there are 2 parameters:
- Load mootools tooltips
- Disable CSS
(this FLEXIcontent CORE css)


1.
for, voting JS, this should be added only if voting fields is created,
- do you have a module that displays votes ?
- maybe the field is created
please check in component configuration (first TAB), under section "Performance Options"
parameter: "Always create field HTML"

it must be set:
Only when needed
or also try
NEVER unless in a template position


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #51398 by Rooney
Replied by Rooney on topic Disabling everything
Thanks, your comments solved most of the problems. Just to many settings for FC sometimes :shock: :D
Rooney

Joomla! 3.9.24 and FC 3.3.9

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.284 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save