Okay
  Public Ticket #3542727
SEO - reduce unused code, css and javascript
Closed

Comments

  •  3
    Jens started the conversation

    Hello,

    please reopen the task, the goal has not been achieved.
    "SEO - reduce unused code, css and javascript #189"

    https://features.wpdatatables.com/189

    I still have all the unnecessary code on the page. This also means that the pages are ranked worse.

    What was actually implemented here? I don't see any improvements.

    If I don't have an editing mode activated for the users, I don't need to include all three areas in the front end.

    1485972976.png
  •  1,689
    Miloš replied

    Hi Jens,

    Thank you for reporting this.

    I am honestly not 100% sure exactly all the details, what was implemented in regards to that improvement of removing the unnecessary CSS and JSS, but we will check about that with our developers.

    I am sending them your screenshot along with the details, so they will advise.

    I will let you know if they need any additional clarification/details from your end.

    Thank you for your patience.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  1,689
    Miloš replied

    Hi Jens,

    Thank you for your patience. Our developers took a look.

    Here are some screenshots, the first one is when the Master-Details add-on is disabled :

    6315041311.png



    And this is how it looks when Master-Details is enabled :

    5880687325.png

    Can you please check do you have the latest wpDataTables version 6.0  and for the Add-on Master-Details latest version 1.3.7?

    Our devs checked and it looks fixed from their end when they look from our test Sites as from the screenshots.


    If you can confirm do you have the latest version installed for both;

    And if you can clarify a bit more details in terms of which functionalities are you using in your Table, so they can double-check?

    Thank you.


    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  3
    Jens replied

    Hi Miloš,

    thank you for your efforts and your answer.

    The Master Details add-on is always activated on my site. Therefore, this task was not about optimizing the master-detail add-on. Rather, it's about optimizing the wpdatatables optimization.

    If you deactivate a table change in the frontent, you don't need all the unnecessary code from e.g. wdt-common-js-extra, wdt-wpdatatables-js-extra and wdtMdTranslationStrings.

    Likewise, all the css imports from bootstrap are unnecessary, e.g. bootstrap-colorpicker.min.css ...
    You definitely have to clean up here in order to get a high-performance site.

    Can you please reopen the task?

    I would be happy to give you further detailed information if you did not understand me. :-)

    Kind regards
    Jens

  •  1,689
    Miloš replied

    Hi Jens,

    Thank you for this update with new details.

    I will reach out again to our developers as all this goes above my level of knowledge.

    I will let you know if they need any additional details/clarifications from your end.

    As soon as they reply we will report back.

    Thank you.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  1,689
    Miloš replied

    Hi Jens,

    We got advised by our developers on further details.


    1. wdt-wpdatatables-js-extra :

    That is used for date data ( for example if you got some column in the Table which is Date type).


    Also, if you got Pagination and advanced column filters in your Table, that file is loaded, as well as for global table search, etc...

    so that file can not be removed, it is needed for said functionalities.

    2. wdt-common-js-extra :

    We are not sure about all the settings/options you have enabled on your Table in this case, but for example on our end, if we disable Editing and if we disable "Table Tools", then this file does not load for us.


    3. wdtMdTranslationStrings :

    - This is on the front end if you are using it. Otherwise, it is not loaded, regardless if you have Master Details enabled or disabled.

    It is only loaded if you use it in your Table.

    We already mentioned that in the previous reply, but we hope that adds some clarification.


    4. In regards to Bootstrap, we agree on that point.

    For example, the color picker is not required, our developers will work to remove it in one of the future updates when it's not needed;

    They will also upgrade our Bootstrap completely, to version 4,  at the moment it is still on Bootstrap version 3, so during these improvements we will also work on further optimizations like that.


    5. If you would like our developers to try a more detailed analysis of everything that is being loaded on your Table that seems it is not needed;

    for now they are just guessing of all the settings/options/data type of columns on your Table and they are advising in general based on what you sent.


    So, if you wish them to try a more detailed analysis, you can send us remote access to check out the front-end as well as back-end of your Table in question.

    If you can send us the front-end Page where you have this Table;  so we can check the front-end;

    And also back-end URL to access the WP-Admin with Admin credentials, so then they can take a closer look if you wish.

    As you know, when you send any access, just ensure to send it as a Private message, for safety.


    If you can also confirm, all these files/points you found, is that only looking at the front-end of the Table?

    Because there are additional files and scripts which are loaded at the back-end of the Table, but some of them do not load on front-end, so if you can also clarify that.

    Thank you.


    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •   Jens replied privately
  •   Miloš replied privately
  •  3
    Jens replied

    Hello Milos,

    I am very surprised why there is no current version installed. Normally a new version is always displayed to me in WordPress and I can install it with a click.
    Unfortunately not with this plugin. Do you know what this could be and how I can solve the problem?

    Best regards
    Jens


  •  1,689
    Miloš replied



    Hi, Jens,

    My sincere apologies for such a late reply.

    -

    When it comes to auto-updates/ or when an update is not automatically offered, this works for the majority of our Users, i can't say with certainty what it might be when it is not offered, but i will provide all the information we have when it comes to Updating our Plugin:

    -

    The most important step is to check this option;

    In the main plugin settings/'Prevent deleting tables in database'.

    1739655861.png

    When you have that enabled, it means that all your tables, settings and charts will remain safe in your WordPress Database, so you can safely update the plugin.

    -

    If you activated the purchase code in wpDataTables Settings/Activation, the update should be offered in the Plugins section. 

    On some WordPress installations, you need to deactivate the plugin first in order to see the update offered, 

    so please try that.


    If that doesn't work, try going through Dashboard/Updates. See if you can update the plugin through there, and if that doesn't work either, you can follow the manual update procedures from this Guide :

    Updating the plugin to the latest version


    If you wish to stay informed in other ways when a new Update is coming out/ and which changes are being made, you can, for example, follow our changeLog page if you'd like ( it is also available in the plugin dashboard), where we state any changes/new features/bug fixes during updates;

    and our newsletter, so you're informed about when a new Update rolls out/ what new features are added, bug fixes, freebies, etc.

    I hope that helps.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  3
    Jens replied

    Hello Milos,

    thank you very much for your support again. The update also noticed some improvements from my old tasks.

    However, the unnecessary wdt-common-js-extra is still rendered into the page.
    Could you please look again at what the problem is?

    Kind regards
    Jens

  •  1,689
    Miloš replied

    Hi Jens,

    Apologies for a late reply once again, thanks for your patience as always.

    You are right, i see what you mean.

    If we inspect your Front End Page that has Table ID 10 , on the Back-End you disabled Editing, while the front-end is still loading that script wdt-common-js-extra.

    7463569221.png
    5276133984.png


    I will reach out to our Developers again - they will inspect your Setup for this Table and we will come back to advise.

    Thank you for your patience again.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  1,689
    Miloš replied

    Hi Jens,

    We have an update from our Developers.

    For the moment it is like this, but they isolated what can be done to improve this soon.

    There are some parts of the files/scripts which can be 'split up/separated' as an improvement, which they plan to work on as soon as possible, so in the following period/ one of the next updates, there will be improved optimizations added.

    If the "common-js" is important for you right now/ to exclude it, you can disable our "Use minified wpDataTables Javascript" option from the Main settings/Custom JS and CSS/Custom JS, but then some other files would be 'called', right now that is the only way around it.

    3849143941.png

    Thank you again for reporting this; it helped our developers to save time as they now realise some better ideas for improved optimizations, when they inspected this more closely.

    So they plan a lot of new optimizations soon, I just can't say an exact ETA on them, but you will see the notes in our ChangeLog, as always, they will point out that more SEO and removing unnecessary CSS/JS is added in one of the following Updates.



    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables