I know about this data-no-transaltion thing, I didnt really understand if it was a joke or something, of course I am not going to put data-no-transaltion in all thousand urls or image urls that the site has, it may break things, hurt seo or whatever.
As mentioned in the documentation, the external links are detected for the possibility of changing the URL in a different language. We had a lot of users requesting this in the past, as well as image translation, so those were implemented.
So you ruined your plugin speed and didnt even think about an option of opting out of these, for the 0.1% of usage of translation, which is for images and external urls?
Another possibility is to have duplicate entries in your database which might affect your loading speed. You can use the Remove duplicate rows option from TP Settings –> Advanced tab to clear them and you should see improvements.
I have used this on staging site, several times, and it always has problems. It starts and never actually ends, of course I am not going to use it on production site. Also, i dont mind deleting all useless strings from database, I mind having them generated again after 10 minutes or something, as it has already happened.
The increased loading speed may be due to a lot of JS content. We have a listener for Javascript strings that when it detects a text change on the page (say a particular JS script adds a notice), we query the server for a translation. This ajax call is also fast as it doesn’t go through the normal WordPress ajax, however, it can be run intensively when there is a lot of traffic to your website. The good part is that you can disable this functionality from TranslatePress -> Settings -> Advanced tab.
I have told you many times, I am talking about TTFB or the time the server is generating the html document to send to the browser, on uncached pages, which is a lot due to the translatepress plugin. This has nothing to do with my javascript files and I have optimized them in any case. About the script you say, is it only for detecting changes on strings, or is it needed for fetching already translated strings from trp tables? Is it trp-translate-dom-changes.js? Update: This option disables dynamic tranlsation completely, even translated strings dont work. I just want to disable bloating the database.
Now, regarding your suggestions for improvement, our dev team will review them. However, the way WordPress environment works make it pretty difficult to separate different type of content, for example, to not detect a string at all if it has a link behind it. This may lead to wrong detection of the desired content which will cause other problems that are difficult to control. Okay, just create an option not to generate any new translation string at all. I have finished (as well as the 95% of users of this plugin) all translation and dont need all this slow functionality to run on each page, just give me the option to stop generating ALL types of new strings. If I want to continue translating, I can disable it, so simple.
To sum up, you are unable to fix anything, just tell me the file this string generation happens.
-
This reply was modified 1 year, 9 months ago by
chrismask.
-
This reply was modified 1 year, 9 months ago by
chrismask.
-
This reply was modified 1 year, 9 months ago by
chrismask.