Support

Admin Tools

#11898 SEO and Link tools, combine of CSS

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Saturday, 07 April 2012 11:55 CDT

user40751
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: 2.5.4
PHP version: 5.2.11
MySQL version: 5.0.51
Host: www.scorpionshops.com
Admin Tools version: 2.2.4

Description of my issue:

When I activate the SEO and Link tools to combine the CSS-files I get an CSS-error on my page, it seems that the order of the CSS styles become different than when Joomla loads them normally. The wrong CSS-code gets loaded for some items on the page. I haven't tried to skip any CSS-files yet in the settings because I wonder if there is anyway to control the order the CSS-files get loaded in the combo.


Jan

nicholas
Akeeba Staff
Manager
It's a little more complicated than that. The order of the CSS files' loading is always the same, even in the concatenated file. There are two problems I've ran across:
- Admin Tools concatenates and optimises the CSS files. This is not a foolproof process. If there are browser-specific hacks (e.g. an IE7 stylesheet relying on the infamous IE comment bug) these are rewritten. Browser-specific CSS files should always be excluded.
- It seems that some rules have to be in different files for the cascading to work correctly. I still haven't been able to identify why that happens, but I have at least one CSS file in one site which doesn't have any effect unless I add it to the exclusion list and it doesn't use any browser-specific hacks.

That's why we have the exclusion lists.

FWIW, neither JS nor CSS combination is a silver bullet. On some sites both work perfectly, on some other site they cause problems. Ideally, JS and CSS should be combines and optimised "by hand" (manually, by a human who understand what he's doing), given the freeform nature of both Javascript code and CSS directives. Automated tools will try to do the best they can, but this is not always possible. In other words, your mileage may vary.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!