• Resolved negapo

    (@negapo)


    Hi,
    One of the main concerns for users evaluating a translation plugin, particularly in an e-commerce context, is performance. I’ve been going through your documentation and forum posts to gather best practices, but I still have a few questions I’d really appreciate some insight on.

    Zero Additional Latency on Default Language
    Our goal is to completely eliminate any performance overhead on the default language pages. Based on what I’ve found, it seems possible to conditionally load some plugin resources only on translated pages. Can you confirm if the following strategies are viable?

    > Disable Dynamic JavaScript Translations, or only load them on translated pages.
    > Load trp-frontend-compatibility.js only on non-default-language pages.
    > When the default language is not English, does it make sense to minimize or disable gettext usage? If the plugin uses its own translation tables for the frontend, relying on __() or _e() might introduce unnecessary overhead.

    In theory, if no gettext functions are called and no frontend JS is loaded on the default language, page load times should be nearly identical to a site with no translation plugin—aside from the language switcher.

    Improving Performance on Translated Pages
    We also want translated pages to load as fast as possible. From what I understand, the following may help reduce impact:

    > Disable automatic translation (especially live/inline translation).
    > For dynamic strings like “Only X$ to free shipping”, we may need to rely on Dynamic JavaScript Translations or gettext. Is there a best practice here to balance translation accuracy with performance?
    > Any tips on boosting cache hit rates and avoiding unnecessary full page processing?

    Any Other Advanced Tips?
    Apologies for the long post, but I believe this kind of technical guidance, if available here in the forum, would be extremely valuable to other users as well, and may even reduce support load.

    Please feel free to get as technical as needed—those insights are exactly what we’re looking for.

    Thanks in advance for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Anghel Emanuel

    (@anghelemanuel99)

    Hello @negapo ,

    Thank you for reaching out to us.

    To enhance the performance of your website while using TranslatePress, we recommend the following optimizations:

    1. Optimize TranslatePress Database Tables
      Navigate to Settings → TranslatePress → Advanced → Debug, and run the “Optimize TranslatePress database tables” function. This will remove duplicate translation strings and reduce unnecessary database overhead.
    2. Disable Dynamic Translation
      From Settings → TranslatePress → Advanced, enable the “Disable dynamic translation” option. This prevents new translation strings from being automatically detected and stored during page visits, reducing load during runtime.
    3. Disable Translation for Gettext Strings
      Go to Settings → TranslatePress → Advanced → Debug, and activate the “Disable translation for gettext strings” option if gettext-based translations are not required. This can help reduce processing time and memory usage.

    Please apply these changes and monitor your site’s performance. Let us know if you notice any improvements or if you need further assistance.

    Kind Regards,

    Plugin Support Anghel Emanuel

    (@anghelemanuel99)

    Hello there,

    Since 5 days have already passed without getting any replies from your side, I will consider this problem as solved and I will mark this thread as “Resolved”.

    If there’s anything else, please let me know!

    Kind Regards,

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

The topic ‘Performance Tip – Avoid Slowing down Site’ is closed to new replies.