Support

Admin Tools

#15876 Combined Javascript file above css files

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 Friday, 26 April 2013 03:10 CDT

Krachtstroom
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.10
PHP version: 5.3.17
MySQL version: 5.5.22
Host: www.byte.nl
Admin Tools version: 2.5.4

Description of my issue:

Hello,

I use the option in Admintools to combine Javascript files. Works well on my site but I discovered that the generated file is placed above all css files in my header. Preferably this file is placed beneath the css files or better, at the bottom of the page.

Is there a way to accomplish that?

Hope to hear soon.

Regards,
Hans

nicholas
Akeeba Staff
Manager
Unfortunately no, that is not possible. It will try to replace the first Javascript tag with the combined Javascript and this sometimes does end up above CSS.

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!

Krachtstroom
Hello Nicholas,

Thank you for your reply.. As for my understanding: it is somewhat unpredictable where the combined file is placed?

Do you think this will work together with other extensions which will place the Javascript on the bottom of the page?

Or shall this be a matter of trial and error?

Regards,
Hans

nicholas
Akeeba Staff
Manager
Yes, where the combined files will end up is a bit random.

Normally it shouldn't work with extensions placing their Javascript at the bottom of the page. We only look in the document's head.

Please note that combining Javascript and CSS files is known to lead to errors due to the way browsers parse those files. You must experiment a lot before you can find a good set of settings which work.

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!