Possible to bring the JS to the end of the site?
Possible to bring the JS to the end of the site? was created by ThiloS
Posted 7 years 5 months ago #38698
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
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
by ThiloS
Please Log in or Create an account to join the conversation.
Replied by ced1870 on topic Possible to bring the JS to the end of the site?
Posted 7 years 5 months ago #38701
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
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
by ced1870
Please Log in or Create an account to join the conversation.
Replied by ThiloS on topic Possible to bring the JS to the end of the site?
Posted 7 years 5 months ago #38702
Cool thanks,
and yes you're right - there is no much benefit by doing it... is just a kind of a personal goal... ; -)
and yes you're right - there is no much benefit by doing it... is just a kind of a personal goal... ; -)
by ThiloS
Please Log in or Create an account to join the conversation.
Time to create page: 0.631 seconds