fbpx
Welcome, Guest
Username: Password: Remember me

TOPIC: Astroid jQuery is at the bottom??

Astroid jQuery is at the bottom?? 1 week 5 days ago #29591

  • pkuhlmann
  • pkuhlmann's Avatar
  • Offline
  • Senior Member
  • Posts: 75
  • Thank you received: 6
  • Karma: 3
Joomla 3.9.26
Astroid 2.5.2
Theme 1.3.2

Hi there,
since I have updated the Template One, the jQuery scripts are at the bottom now. :angry:

Ok, this is very perfect for Google page speed but completetely useless, if some Joomla module need the jQuery before.
I develope some Joomla module which need jQuery loading first, same with bootstrap scripts.
Otherwise I have to load jQuery again, see souce code.



How I can fix it, and move the Jquery to the top again.
PS: And its not everything good what Google wants!!! :whistle:
The administrator has disabled public write access.

Astroid jQuery is at the bottom?? 5 days 20 hours ago #29664

  • pkuhlmann
  • pkuhlmann's Avatar
  • Offline
  • Senior Member
  • Posts: 75
  • Thank you received: 6
  • Karma: 3
Hi again,
so i got some answer from jQuery developer forum.



Its useless to load the jQuery library in the bottom because all inline scripts need the library before.
And ofc the minified jQuery have only 79kb...
You should at least have a template option to move it to bottom or top of the page.
Thanks, Peter
The administrator has disabled public write access.

Astroid jQuery is at the bottom?? 12 hours 3 minutes ago #29752

  • pkuhlmann
  • pkuhlmann's Avatar
  • Offline
  • Senior Member
  • Posts: 75
  • Thank you received: 6
  • Karma: 3
Hello, so Nishta is gone? Hope she is well.
Anywhy I found a solution to load jQuery in the head or remove it.

1.) Open the index.php from the theme
2.) Move the <astroid:include type="body-scripts" /> loading script to the head or remove it if you dont need

Last Edit: 12 hours 2 minutes ago by pkuhlmann.
The administrator has disabled public write access.
The following user(s) said Thank You: dankra
Moderators: chandandeep
Time to create page: 0.310 seconds
Cron Job Starts