{"id":15511416,"url":"https://github.com/andrewmcodes/bridgetown-esbuild-minifySyntax","last_synced_at":"2025-10-12T08:31:27.215Z","repository":{"id":103491379,"uuid":"528239388","full_name":"andrewmcodes/bridgetown-esbuild-minifySyntax","owner":"andrewmcodes","description":"Benchmarking usage of minifySyntax with esbuild and Bridgetown","archived":false,"fork":false,"pushed_at":"2023-03-02T06:43:55.000Z","size":47,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-13T01:18:47.203Z","etag":null,"topics":["andrewmcodes","demo","experiment"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrewmcodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["andrewmcodes"]}},"created_at":"2022-08-24T02:41:09.000Z","updated_at":"2023-03-02T06:38:46.000Z","dependencies_parsed_at":"2023-03-12T03:46:29.385Z","dependency_job_id":null,"html_url":"https://github.com/andrewmcodes/bridgetown-esbuild-minifySyntax","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewmcodes%2Fbridgetown-esbuild-minifySyntax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewmcodes%2Fbridgetown-esbuild-minifySyntax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewmcodes%2Fbridgetown-esbuild-minifySyntax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewmcodes%2Fbridgetown-esbuild-minifySyntax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewmcodes","download_url":"https://codeload.github.com/andrewmcodes/bridgetown-esbuild-minifySyntax/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236188304,"owners_count":19109386,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["andrewmcodes","demo","experiment"],"created_at":"2024-10-02T09:53:01.288Z","updated_at":"2025-10-12T08:31:26.786Z","avatar_url":"https://github.com/andrewmcodes.png","language":"JavaScript","funding_links":["https://github.com/sponsors/andrewmcodes"],"categories":["JavaScript"],"sub_categories":[],"readme":"[![Project Status: Abandoned – Initial development has started, but there has not yet been a stable, usable release; the project has been abandoned and the author(s) do not intend on continuing development.](https://www.repostatus.org/badges/latest/abandoned.svg)](https://www.repostatus.org/#abandoned)\n\n# `minifySyntax` Experiments\n\n## No JavaScript\n\nFirst I want to get a baseline and then see what the difference is on a clean site.\n\n`bridgetown new bt-esbuild-minifysyntax -t erb`\n\n### Fresh 1.1.0\n\n| Environment | JS Size | CSS Size | User Time | System Time |\n| ----------- | ------- | -------- | --------- | ----------- |\n| Development | 153B    | 4.25KB   | 0.49s     | 0.13s       |\n| Production  | 113B    | 3.03KB   | 0.71s     | 0.20s       |\n\n### Fresh `minifySyntax`\n\n| Environment | JS Size | CSS Size | User Time | System Time |\n| ----------- | ------- | -------- | --------- | ----------- |\n| Development | 153B    | 3.86KB   | 0.48s     | 0.13s       |\n| Production  | 113B    | 3.03KB   | 0.71s     | 0.18s       |\n\n**So not much of a change for the JS size, though it did reduce the CSS size a bit.**\n\n## Add JavaScript\n\nNow let's run a bunch of configurators and see what happens when there is actual JS to be minified.\n\n```sh\nbridgetown configure turbo\nbridgetown configure stimulus\nbridgetown configure lit\nbridgetown configure shoelace\n```\n\n### With JS\n\n| Environment | JS Size  | CSS Size | User Time | System Time |\n| ----------- | -------- | -------- | --------- | ----------- |\n| Development | 285.52KB | 23.15KB  | 0.71s     | 0.16s       |\n| Production  | 173.9KB  | 20.26KB  | 1.19s     | 0.85s       |\n\n### With JS and `minifySyntax`\n\n| Environment | JS Size | CSS Size | User Time | System Time |\n| ----------- | ------- | -------- | --------- | ----------- |\n| Development | 266KB   | 22.47KB  | 0.70s     | 0.16s       |\n| Production  | 173.9KB | 20.36KB  | 1.16s     | 0.82s       |\n\nNot a major difference in size but still a reduction in JS and CSS size. Over time though this adds up!\n\n## Summary \n\nThe results show that while the difference in JS size is not significant, the CSS size is reduced slightly in both cases. When there is actual JS to be minified, the difference in size is still not major but significant over time.\n\nHowever, this was done before [esbuild v0.17.0](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md#0170) was released which had a lot of breaking changes that I haven't investigated fully so this may no longer apply. Regardless, it appears to help but not significantly under these circumstances and in my own personal site.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewmcodes%2Fbridgetown-esbuild-minifySyntax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewmcodes%2Fbridgetown-esbuild-minifySyntax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewmcodes%2Fbridgetown-esbuild-minifySyntax/lists"}