Skip to content

perf: reuse aria attributes between all components#5160

Merged
TrySound merged 1 commit into
mainfrom
aria-props
Apr 24, 2025
Merged

perf: reuse aria attributes between all components#5160
TrySound merged 1 commit into
mainfrom
aria-props

Conversation

@TrySound
Copy link
Copy Markdown
Contributor

@TrySound TrySound commented Apr 24, 2025

Ref #3632

We have a universally generated list of aria attributes and can reuse it instead of generating for every component and bloating our client bundle.

Now users will have to download ~700kB less javascript when load builder.

- 5748    build/client/assets
+ 5036    build/client/assets
Screenshot 2025-04-24 at 12 01 46

Now we have universally generated list of aria attributes
and can reuse it instead of generating for every component
and bloating our client bundle.

Now users will have to download ~700kB less javascript
when load builder.

```diff
- 5748    build/client/assets
+ 5036    build/client/assets/
```
@TrySound TrySound requested review from istarkov, johnsicili and kof April 24, 2025 05:05
@TrySound TrySound changed the title refactor: reuse aria attributes between all components perf: reuse aria attributes between all components Apr 24, 2025
Comment thread packages/html-data/bin/aria.ts
Copy link
Copy Markdown
Member

@kof kof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why separating specifically aria attributes and not all common/universal html attributes

@TrySound
Copy link
Copy Markdown
Contributor Author

Because aria attributes has own rules based on roles. Regular attributes are based on tags. We are not doing it right at the moment though will improve in the future.

@TrySound TrySound merged commit 93c0057 into main Apr 24, 2025
21 checks passed
@TrySound TrySound deleted the aria-props branch April 24, 2025 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants