0.45.0
A catalog only grows, and every page was paying for all of it
Text that lives on one page, a list of releases, a blog archive, a long list of questions, was downloaded by every visitor on every page. This version lets you name those groups of messages and keep them in the build. The pages that use them still come out translated, because that text is already written into the HTML, and the browser stops downloading it. Looking for the proof also uncovered a real defect underneath. After its first pass, Verbaly could replace correct translated text on the page with the message’s internal name whenever a message was missing. That is fixed here, and it matters to anyone who pre-renders their site.
- Text that only one page needs stops travelling to all of them. Name that group of messages in your config and the browser no longer downloads it. The pages that use it still come out translated, because that text is already in the HTML.
- Pre-rendered text is never destroyed any more. If a message is missing, Verbaly keeps the text that is already on the page instead of replacing it with the message’s internal name. Before, that could happen a moment after a page loaded.
- Measured on this site: the file every page loads went from 46.3 KB to 33.5 KB compressed, and the Spanish and Portuguese trees dropped about 14 KB each. Nothing was lost on screen.
- Nothing changes if you do not switch it on. It is a new option, and a project that does not write it behaves exactly as before.
- The build tells you when it looks wrong, naming a group that matches nothing in your catalog, or one your code reads directly.
- An option that keeps the groups of messages only the build needs out of the browser
- Pre-rendered text is no longer replaced by a message’s internal name when that message is missing