• Resolved newshop

    (@newshop)


    Hi,
    I’m very happy that its now possibole to store the translations in an update safe way. But I noticed that the translations are loaded very slow. When I open my page, it first shows the english version and after about 2 seconds it switches to my germy translation. Any idea why this takes so long?
    Many thankd in advance!

    https://wordpress.org/plugins/loco-translate/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Tim W

    (@timwhitlock)

    I don’t see that this issue could be related to my plugin. Loco translate saves MO files. What your site does with them is beyond its control.

    Thread Starter newshop

    (@newshop)

    Ok but what could I do to load it faster? When I save the translation in the deprecated /wp-content/languages/themes folder they are loaded directly. If I save them in /wp-content/languages/loco/themes they are loaded delayed.

    Thread Starter newshop

    (@newshop)

    I got it. I use the plugin Product Organizer to disable plugins on pages where I dont need them to speed up page load. Loco Translate was disables as I needed the old version only on backend but the new version must be enabled everywhere to be sure that the translations in /loco folder are loaded first.

    Plugin Author Tim W

    (@timwhitlock)

    Yes it does need to be enabled for this reason, but it does not explain the delay, nor does it explain why you see English first.

    The code than runs to use the custom folder should not take 2 seconds. Something else must be causing the delay.

    How is it possible that you see English first and then a switch? This is not consistent with how WordPress loads translations.

    Thread Starter newshop

    (@newshop)

    Dont know but when I disable Loco on all pages, the delay is gone..

    Thread Starter newshop

    (@newshop)

    Oh no its only gone in firefox, but in safari and chrome its still delayed.. Cleared all caches.. And in safari and chrome it doesnt even load all translations. some parts are translated, others are not. In firefox it all works fine :/

    Thread Starter newshop

    (@newshop)

    The plugin Plugin Organizer causes these problems. I will contact the author, maybe he knows a solution. But when I disable it, all works fine in all browsers..

    Plugin Author Tim W

    (@timwhitlock)

    Thanks for the update.
    Could you please mark this as resolved if the issue is not connected with Loco?

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Delayed loading of translation’ is closed to new replies.