-
AuthorPosts
-
October 11, 2015 at 2:19 pm #731441
Hi there,
I am trying to optimize the index.html and or index.php files. But :-* to be very honest I can’t find them.
I am using multilanguages like german french and english.My browser is referring to a folder which I can’t find on my server.
http://messemarketing.de/index.php/de/Does anybody have an idea ?
I’d be grateful.Thank you.
Hanno
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
October 11, 2015 at 4:47 pm #751265Hi
<blockquote>I am trying to optimize the index.html and or index.php files.</blockquote>
Joomla loads index php file not index.html, it is stored in this folder templatesja_onepage but there is nothing to optimize there since it only loads other files.
So maybe a look at the documentation could help1 user says Thank You to pavit for this useful post
October 12, 2015 at 6:51 am #751331Thank you. What I am trying to do is to follow some suggestions of googles page speed. I have according to google pagespeed so called blocking script ressources.
Google wants me to asynchronously load those scripts.<script src=”/media/system/js/mootools-core.js” type=”text/javascript”></script>
<script src=”/media/system/js/core.js” type=”text/javascript”></script>
<script src=”/media/system/js/caption.js” type=”text/javascript”></script>Therfore I will have to acces the header. But I don’t know where to find it.
In the documentation of T3 I didn’t find the path for my header.
Anybody an Idea ?pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
October 12, 2015 at 7:45 am #751345<blockquote>In the documentation of T3 I didn’t find the path for my header. </blockquote>
You can look at this folder templatesja_onepagetplsblockshead.php
1 user says Thank You to pavit for this useful post
October 12, 2015 at 10:02 am #751375Thank you. Now I do find head.php but I don’t find any references to the blocking scripts. However I can see these scripts in the source codes.
Here:
<script src=”/media/system/js/mootools-core.js” type=”text/javascript”></script>
<script src=”/media/system/js/core.js” type=”text/javascript”></script>
<script src=”/media/system/js/caption.js” type=”text/javascript”></script>
<script src=”/plugins/system/t3/base/js/jquery-1.8.3.min.js” type=”text/javascript”></script>
<script src=”/plugins/system/t3/base/js/jquery.noconflict.js” type=”text/javascript”></script>
<script src=”/plugins/system/t3/base/bootstrap/js/bootstrap.js” type=”text/javascript”></script>Google wants me to place an <script async src=”my.js”> tag.
Does anybody know where to place this tag ? :-*pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
October 12, 2015 at 10:14 am #751379<blockquote>Google wants me to place an <script async src=”my.js”> tag.
Does anybody know where to place this tag ? </blockquote>If you need to add a js then you can add it from Template Manager -> Ja onepage -> Custom code tab -> Before </head> section
Take a look at this image for reference
1 user says Thank You to pavit for this useful post
October 12, 2015 at 12:41 pm #751397Right. That is a solution to add code. I have tried that. But I guess I havn’t really described my question correctly. :-*
I have to alter existing code.<script src=”/media/system/js/mootools-core.js” type=”text/javascript”></script>
has to be changed into
<script async src=”/media/system/js/mootools-core.js” type=”text/javascript”></script>Google thinks that in this way some scripts can be loaded parallely instead of one after the other. In this way they want to increase the pagespeed.
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
October 14, 2015 at 5:23 am #751601Hi
Try to look in this file librariesjoomladocumentdocument.php and change occurrencies of
public function addScript($url, $type = "text/javascript", $defer = false, $async = false)
to :
public function addScript($url, $type = "text/javascript", $defer = false, $async = true)
1 user says Thank You to pavit for this useful post
October 14, 2015 at 7:39 am #751618Hi,
this does the job for all sripts.
Works fine but the the main menu and google maps don’t work properly anymore.
The pagespeed is up by 6 Points however.Do you think there is a way to do it for specific scripts only ? Such as
mootools-core.js and caption.js ?I am starting to have a faint idea on how complex this template is…. 🙂
Thanks for your kind interest and support.
Hannopavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
October 14, 2015 at 10:00 am #751642Hi, I tried that already. Disabling Motools with a disabler works.
But in that case the contact module does not operate any more.
As I didn’t know how to explicitly enable motools only for the contact module I had to enable it again.Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
October 20, 2015 at 10:37 am #752281Hi @messemarketing,
It’s out of what a template can handle and you will have to look for a 3rd party extension instead. You can have a look here.
1 user says Thank You to Adam M for this useful post
October 27, 2015 at 7:52 pm #752970Hi Adam, it took me a while to understand the possibilities of those extension. But I think that will do the job. Great. Thank you. 😉
-
AuthorPosts
This topic contains 13 replies, has 3 voices, and was last updated by messemarketing 9 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum