<p>The key thing is not removing the translations anyway, it is splitting them up so you only get the ones for your current locale. As I explained in the operations ticket that appears to be tricky to do but probably not impossible.</p>
<p>Trying to further break them down seems like a bad idea to me - as I also explained on the operations ticket the rails theory in general is not to create dozens of tiny files that need to be downloaded, but to bundle things together.</p>
<p>My goal (for translations) is to remove them from <code>application.js</code> to <code>i18n/<locale>.js</code> or something but it will need to wait a week or two before I have time to look in detail at how to go about it.</p>
<p>Your other suggestion appears to be going in the opposite direction of what I understood to be our direction of travel, by moving things from the client to the server. I'm really reluctant to be tying up server resources on something like that which can be relatively long running and my general goal has been to do the opposite - to the extent that I actually have a branch where I was playing around with moving the geocoder stuff to the client.</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-413496173">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABWnLYQuxlyoDAvkgFCA3XBJVG1F8Yojks5uRUbsgaJpZM4V_j_f">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABWnLQrI3tqNyGKeD_P5C4TWk5ZoGmG4ks5uRUbsgaJpZM4V_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":"@tomhughes in #1949: The key thing is not removing the translations anyway, it is splitting them up so you only get the ones for your current locale. As I explained in the operations ticket that appears to be tricky to do but probably not impossible.\r\n\r\nTrying to further break them down seems like a bad idea to me - as I also explained on the operations ticket the rails theory in general is not to create dozens of tiny files that need to be downloaded, but to bundle things together.\r\n\r\nMy goal (for translations) is to remove them from `application.js` to `i18n/\u003clocale\u003e.js` or something but it will need to wait a week or two before I have time to look in detail at how to go about it.\r\n\r\nYour other suggestion appears to be going in the opposite direction of what I understood to be our direction of travel, by moving things from the client to the server. I'm really reluctant to be tying up server resources on something like that which can be relatively long running and my general goal has been to do the opposite - to the extent that I actually have a branch where I was playing around with moving the geocoder stuff to the client."}],"action":{"name":"View Issue","url":"https://github.com/openstreetmap/openstreetmap-website/issues/1949#issuecomment-413496173"}}}</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-413496173",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/1949#issuecomment-413496173",
"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": "**Tom Hughes**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@tomhughes",
"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-413496173"
}
],
"@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>