Skip to content

Commit a4a9d49

Browse files
authored
Enhance browser support documentation metadata
Updated the title and description for clarity and added a sidebar label.
1 parent 3fc6bde commit a4a9d49

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

docs/browser-support.mdx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
id: browser-support
3+
title: Browser Support
34
description: Learn how CodeHarborHub manages browser compatibility while keeping bundle size small
45
sidebar_label: Browser Support
56
keywords:
@@ -9,13 +10,10 @@ keywords:
910
- bundle size
1011
---
1112

12-
# Browser Support
13+
CodeHarborHub uses the **[Browserslist](https://github.com/browserslist/browserslist)** configuration to define which browsers are supported during builds.
1314

14-
CodeHarborHub uses the **[Browserslist](https://github.com/browserslist/browserslist)** configuration to define which browsers are supported during builds.
1515
This ensures a balance between **backward compatibility** and **optimized bundle size**.
1616

17-
<AdsComponent />
18-
1917
## Purpose {#purpose}
2018

2119
Older browsers often lack support for modern JavaScript syntax and APIs.
@@ -42,8 +40,6 @@ const value =
4240
4341
This keeps the code running everywhere—but also makes the bundle larger.
4442
45-
<AdsComponent />
46-
4743
## Default Configuration {#default-configuration}
4844
4945
The default CodeHarborHub template includes the following **browserslist** field in `package.json`:
@@ -113,21 +109,17 @@ Examples:
113109
* `>1%` – Only browsers with more than 1% market share.
114110
* `last 2 versions` – Support the last two major versions of each browser.
115111
116-
<AdsComponent />
117-
118112
## Best Practices {#best-practices}
119113
120114
* Keep production targets **inclusive but reasonable** to avoid large polyfills.
121115
* Regularly check usage statistics for your audience (e.g., via [Can I Use](https://caniuse.com/)).
122116
* Test your site on the most critical browsers after changing the config.
123117
* Avoid supporting obsolete browsers like IE11 unless absolutely necessary.
124118
125-
<AdsComponent />
126-
127119
## Learn More {#learn-more}
128120
129121
* [Browserslist README](https://github.com/browserslist/browserslist/blob/main/README.md)
130122
* [Query Examples](https://github.com/browserslist/browserslist#queries)
131123
* [Best Practices](https://github.com/browserslist/browserslist#best-practices)
132124
133-
By carefully tuning browser support, CodeHarborHub ensures **fast loading times** while maintaining compatibility for the majority of users.
125+
By carefully tuning browser support, CodeHarborHub ensures **fast loading times** while maintaining compatibility for the majority of users.

0 commit comments

Comments
 (0)