<blockquote>
<p>That branch is running at <a href="https://tomh.apis.dev.openstreetmap.org/" rel="nofollow">https://tomh.apis.dev.openstreetmap.org/</a> for people to try.</p>
</blockquote>
<p>This looks very promising. In addition to reducing the download size, we also got rid of about 1.2s of Javascript parsing for all those translation. In Firefox, this affected every page where application.js was included, Chrome somehow cached the parsed result already.</p>
<h2>Chrome Dev Tools - Performance audit results</h2>
<h3>Before</h3>
<p><a target="_blank" href="https://user-images.githubusercontent.com/5842757/44225780-a9bd8d00-a18e-11e8-9731-ea156161e79b.png"><img src="https://user-images.githubusercontent.com/5842757/44225780-a9bd8d00-a18e-11e8-9731-ea156161e79b.png" alt="bildschirmfoto von 2018-08-16 19-57-12" style="max-width:100%;"></a></p>
<h3>After</h3>
<p><a target="_blank" href="https://user-images.githubusercontent.com/5842757/44225778-a7f3c980-a18e-11e8-8483-a8440485f299.png"><img src="https://user-images.githubusercontent.com/5842757/44225778-a7f3c980-a18e-11e8-8483-a8440485f299.png" alt="bildschirmfoto von 2018-08-16 19-56-01" style="max-width:100%;"></a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/1949#issuecomment-413633323">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABWnLR4wp2n3dNd0aQumYJf498DskKh3ks5uRbN2gaJpZM4V_j_f">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABWnLcaH1j6JPCpNgAdx7vyDo-BjEXEhks5uRbN2gaJpZM4V_j_f.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/openstreetmap-website","title":"openstreetmap/openstreetmap-website","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/openstreetmap-website"}},"updates":{"snippets":[{"icon":"PERSON","message":"@mmd-osm in #1949: \u003e That branch is running at https://tomh.apis.dev.openstreetmap.org/ for people to try.\r\n\r\nThis looks very promising. In addition to reducing the download size, we also got rid of about 1.2s of Javascript parsing for all those translation. In Firefox, this affected every page where application.js was included, Chrome somehow cached the parsed result already.\r\n\r\n## Chrome Dev Tools - Performance audit results\r\n\r\n### Before\r\n\r\n![bildschirmfoto von 2018-08-16 19-57-12](https://user-images.githubusercontent.com/5842757/44225780-a9bd8d00-a18e-11e8-9731-ea156161e79b.png)\r\n\r\n### After\r\n\r\n![bildschirmfoto von 2018-08-16 19-56-01](https://user-images.githubusercontent.com/5842757/44225778-a7f3c980-a18e-11e8-8483-a8440485f299.png)\r\n\r\n"}],"action":{"name":"View Issue","url":"https://github.com/openstreetmap/openstreetmap-website/issues/1949#issuecomment-413633323"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/1949#issuecomment-413633323",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/1949#issuecomment-413633323",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [openstreetmap/openstreetmap-website] Reduce size of application.js by removing translations? (#1949)",
"sections": [
{
"text": "",
"activityTitle": "**mmd**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@mmd-osm",
"facts": [

]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"openstreetmap/openstreetmap-website\",\n\"issueId\": 1949,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"openstreetmap/openstreetmap-website\",\n\"issueId\": 1949\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/openstreetmap/openstreetmap-website/issues/1949#issuecomment-413633323"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 368984031\n}"
}
],
"themeColor": "26292E"
}
]</script>