Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • messemarketing Friend
    #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 Moderator
    #751265

    Hi

    <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 help

    messemarketing Friend
    #751331

    Thank 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 Moderator
    #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

    messemarketing Friend
    #751375

    Thank 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 Moderator
    #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

    messemarketing Friend
    #751397

    Right. 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 Moderator
    #751601

    Hi

    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)

    messemarketing Friend
    #751618

    Hi,
    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.
    Hanno

    pavit Moderator
    #751621

    Hi

    I think you should completely avoid to load mootools library try to take a look HERE

    messemarketing Friend
    #751642

    Hi, 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 Moderator
    #752281

    Hi @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.

    messemarketing Friend
    #752970

    Hi Adam, it took me a while to understand the possibilities of those extension. But I think that will do the job. Great. Thank you. 😉

Viewing 13 posts - 1 through 13 (of 13 total)

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