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

More
8 years 1 week ago #38698 by ThiloS
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 or Create an account to join the conversation.

More
8 years 1 week ago #38701 by ced1870
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

Joomlack Webmaster and Developer

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

More
8 years 1 week ago #38702 by ThiloS
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 or Create an account to join the conversation.

Time to create page: 0.197 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 613 guests and one member online