travelI'm on Holidays until the 21 august.

The questions posted during this period will receive no answer, so please be patient and wait before posting in the forum. Thank you

New registrations are suspended during this period

Je suis en vacances jusqu'au 21 aout.

Je ne répondrai à aucune question postée durant cette période. Merci d'attendre mon retour. Merci

Les inscriptions sur le site sont suspendues pendant cette période

 

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Possible to bring the JS to the end of the site?

Possible to bring the JS to the end of the site? 10 Nov 2016 15:11 #38698

  • ThiloS
  • ThiloS's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Hi there,

first of all: Everything works just fine with your Plugin. Really nice work.

Since i always try to optimize the code for a good PageSpeed by google, i just want to ask if theoretically it would be possible to position the "mediaboxck.min.js" just at the bottom of the site near the closing body-tag.

Normally i do that for all my scripts and for the jquery.min as well.

I just don't know if this is overall possible with keeping all the functions of this cool plugin...?

So - i don't want a solution (if there already is one that - of course - would be just great) but a opinion if it could work in general that way or not.

Greets,

Thilo

Please Log in to join the conversation.

Possible to bring the JS to the end of the site? 10 Nov 2016 15:27 #38701

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 17666
  • Karma: 391
  • Thank you received: 2264
Hi
the js script is loaded with the joomla API "addScript" and "addScriptDeclaration"
so if you can manage to move the other scripts, you can do the same for this
just load it after the jquery

by my side I don't see any reason, it should work also at the bottom of the page :)
CEd

Please Log in to join the conversation.

Joomlack Webmaster and Developer

Possible to bring the JS to the end of the site? 10 Nov 2016 15:28 #38702

  • ThiloS
  • ThiloS's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Cool thanks,

and yes you're right - there is no much benefit by doing it... is just a kind of a personal goal... ; -)

Please Log in to join the conversation.

  • Page:
  • 1
Time to create page: 0.280 seconds

Fast and powerful creation, customizable and responsive.

Read More

Qui est en ligne

We have 223 guests and no members online