Skip to content

Commit a958857

Browse files
perf(docs): add loading="lazy" decoding="async" to all <img> tags
All <img> HTML tags across versioned docs (v1–v4) and current docs pages now have loading="lazy" decoding="async" so images are: - Deferred until they enter the viewport (reduces initial page weight) - Decoded off the main thread (reduces INP / Total Blocking Time) Key heavy assets now lazy-loaded: - /gif/record-replay.gif (2.5 MB), /gif/replay-tc.gif (2.1 MB) - /gif/unit-test.gif (24.8 MB!) ← was loading unconditionally - /img/record-api.gif (1.1 MB) - multiple 600 KB–1.4 MB PNG screenshots Affects 112 documentation files across all supported doc versions. Closes #2042" Signed-off-by: Aryan Parikh <aryan81006@gmail.com>
1 parent 6f91d68 commit a958857

112 files changed

Lines changed: 411 additions & 411 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/gsoc/contribution-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Google pays the students, not the organizations they work with. Beginning in 202
2222

2323
You can read more about the format of the program and its goals [here](https://google.github.io/gsocguides/mentor/).
2424

25-
<img src="/img/gsoc-banner.png"/>
25+
<img src="/img/gsoc-banner.png" loading="lazy" decoding="async"/>
2626

2727
## Keploy X GSoC
2828

docs/hacktoberfest/contribution-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ label: Hacktoberfest
1010

1111
Hacktoberfest'22 is a month-long celebration of open-source software run by DigitalOcean. Hacktoberfest is open to everyone, from first-time contributors to seasoned open-source developers. Your open-source journey begins with a pull request.
1212

13-
<img src="https://user-images.githubusercontent.com/53110238/193503992-c839beeb-53fd-46d7-9214-a88bfff6475a.png"/>
13+
<img src="https://user-images.githubusercontent.com/53110238/193503992-c839beeb-53fd-46d7-9214-a88bfff6475a.png" loading="lazy" decoding="async"/>
1414

1515
## Hacktoberfest Journey with Keploy
1616

docs/hacktoberfest/non-code.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ label: Hacktoberfest
88

99
There are many ways to contribute to Keploy projects without writing a single line of code. You can help with:
1010

11-
- <img src="https://www.svgrepo.com/show/10712/pencil.svg" width='40px'/> Used Keploy recently ? Tell the community about it in an awesome blog post.
11+
- <img src="https://www.svgrepo.com/show/10712/pencil.svg" width='40px' loading="lazy" decoding="async"/> Used Keploy recently ? Tell the community about it in an awesome blog post.
1212

13-
- <img src="https://www.svgrepo.com/show/157174/document.svg" width='40px'/> Improve Documentation as the more detailed the documentation is, better it will be for people who are looking for help.
13+
- <img src="https://www.svgrepo.com/show/157174/document.svg" width='40px' loading="lazy" decoding="async"/> Improve Documentation as the more detailed the documentation is, better it will be for people who are looking for help.
1414

15-
- <img src="https://www.svgrepo.com/show/294283/youtube.svg" width='40px'/> Create a tutorial because they provide instructions on how to use a tool or service in a step-by-step manner.
15+
- <img src="https://www.svgrepo.com/show/294283/youtube.svg" width='40px' loading="lazy" decoding="async"/> Create a tutorial because they provide instructions on how to use a tool or service in a step-by-step manner.

versioned_docs/version-1.0.0/concepts/what-are-keploy-features.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ keywords:
1414

1515
Keploy captures all the API calls and subsequent network traffic served by the application. You can use any existing API management tools like Postman, curl to generate test-case.
1616

17-
<img src="/docs/img/record-api.gif?raw=true" width="80%" alt="API Tools"/>
17+
<img src="/docs/img/record-api.gif?raw=true" width="80%" alt="API Tools" loading="lazy" decoding="async"/>
1818

1919
### 2. Automatically mock Mutations
2020

2121
Keploy automatically [mocks](/concepts/general-glossary.md#1-api-data-mocking) network/external dependencies for **all CRUD operations** with correct responses.
2222

2323
Data dumps, stubs or mocks for dependencies like DBs, internal services, or third party services like twilio, shopify or stripe are **not required**.
2424

25-
<img src="/docs/img/mock-dependencies.png?raw=true" width="50%" alt="Mock Application Dependencies"/>
25+
<img src="/docs/img/mock-dependencies.png?raw=true" width="50%" alt="Mock Application Dependencies" loading="lazy" decoding="async"/>
2626

2727
Please check list of currently supported dependencies in [Go, Java and Node](https://keploy.io/#integrations).
2828

2929
Keploy can safely replay writes or mutations by capturing from local or other environments and replaying without API chaining.
3030

31-
<img src="/docs/gif/record-replay.gif?raw=true" width="80%" alt="API Tools"/>
31+
<img src="/docs/gif/record-replay.gif?raw=true" width="80%" alt="API Tools" loading="lazy" decoding="async"/>
3232

3333
[Idempotency](/concepts/general-glossary.md#2-idempotency) guarantees are also **not required** in the application. Multiple Reads after write operations can be replicated automatically too.
3434

@@ -38,7 +38,7 @@ Keploy identifies [noisy fields](/concepts/general-glossary.md#3-noisy-field) in
3838

3939
As the application serves the API, Keploy re-run that API request with the captured dependency mocks.
4040

41-
[//]: # '<img src="https://github.com/docs/img/noise-filtration.png?raw=true" alt="Keploy noise filtration"/>'
41+
[//]: # '<img src="https://github.com/docs/img/noise-filtration.png?raw=true" alt="Keploy noise filtration" loading="lazy" decoding="async"/>'
4242

4343
Keploy then compares if the responses of the API requests disagree with each other.
4444
If any of the fields of the API responses are different they are marked as random/non-deterministic fields.
@@ -49,7 +49,7 @@ Keploy has [native integrations](/concepts/general-glossary.md#4-interoperabilit
4949
Code coverage will be reported with existing and Keploy recorded test cases and can also be integrated in
5050
existing CI pipelines easily.
5151

52-
<img src="/docs/gif/replay-tc.gif?raw=true" alt="Keploy Integration with Testing Libraries"/>
52+
<img src="/docs/gif/replay-tc.gif?raw=true" alt="Keploy Integration with Testing Libraries" loading="lazy" decoding="async"/>
5353

5454
### 5. Easy Integration Framework for new Libraries
5555

versioned_docs/version-1.0.0/gsoc/contribution-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Google pays the students, not the organizations they work with. Beginning in 202
2222

2323
You can read more about the format of the program and its goals [here](https://google.github.io/gsocguides/mentor/).
2424

25-
<img src="/docs/img/gsoc-banner.png"/>
25+
<img src="/docs/img/gsoc-banner.png" loading="lazy" decoding="async"/>
2626

2727
## Keploy X GSoC
2828

versioned_docs/version-1.0.0/hacktoberfest/contribution-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ label: Hacktoberfest
1010

1111
Hacktoberfest is a month-long celebration of open-source software run by DigitalOcean. Hacktoberfest is open to everyone, from first-time contributors to seasoned open-source developers. Your open-source journey begins with a pull request.
1212

13-
<img src="https://user-images.githubusercontent.com/53110238/193503992-c839beeb-53fd-46d7-9214-a88bfff6475a.png" alt="hactoberfest"/>
13+
<img src="https://user-images.githubusercontent.com/53110238/193503992-c839beeb-53fd-46d7-9214-a88bfff6475a.png" alt="hactoberfest" loading="lazy" decoding="async"/>
1414

1515
## Hacktoberfest Journey with Keploy
1616

versioned_docs/version-1.0.0/hacktoberfest/non-code.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ label: Hacktoberfest
88

99
There are many ways to contribute to Keploy projects without writing a single line of code. You can help with:
1010

11-
- <img src="https://www.svgrepo.com/show/10712/pencil.svg" width='40px' alt="pencil"/> Used Keploy recently ? Tell the community about it in an awesome blog post.
11+
- <img src="https://www.svgrepo.com/show/10712/pencil.svg" width='40px' alt="pencil" loading="lazy" decoding="async"/> Used Keploy recently ? Tell the community about it in an awesome blog post.
1212

13-
- <img src="https://www.svgrepo.com/show/157174/document.svg" width='40px' alt="Documents"/> Improve Documentation as the more detailed the documentation is, better it will be for people who are looking for help.
13+
- <img src="https://www.svgrepo.com/show/157174/document.svg" width='40px' alt="Documents" loading="lazy" decoding="async"/> Improve Documentation as the more detailed the documentation is, better it will be for people who are looking for help.
1414

15-
- <img src="https://www.svgrepo.com/show/294283/youtube.svg" width='40px' alt="tutorial"/> Create a tutorial because they provide instructions on how to use a tool or service in a step-by-step manner.
15+
- <img src="https://www.svgrepo.com/show/294283/youtube.svg" width='40px' alt="tutorial" loading="lazy" decoding="async"/> Create a tutorial because they provide instructions on how to use a tool or service in a step-by-step manner.

versioned_docs/version-2.0.0/concepts/platform-requirements.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ Linux:
2727

2828
| Operating System | Without Docker | Docker Installation | Prerequisites |
2929
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
30-
| <img src="https://www.pngplay.com/wp-content/uploads/3/Apple-Logo-Transparent-Images.png" width="15" height="15" alt="MacOS" /> **MacOS** | [Guide](/keploy-explained/mac-linux.md) | [Guide](/server/installation/) | - Docker Desktop version must be 4.25.2 or above<br/> |
31-
| <img src="https://upload.wikimedia.org/wikipedia/commons/5/5f/Windows_logo_-_2012.svg" width="15" height="15" alt="Windows" /> **Windows** | <img src="https://upload.wikimedia.org/wikipedia/commons/e/e5/Green_tick_pointed.svg" width="20" height="20" alt="Supported" /> | <img src="https://upload.wikimedia.org/wikipedia/commons/e/e5/Green_tick_pointed.svg" width="20" height="20" alt="Supported" /> | - Use [WSL](https://learn.microsoft.com/en-us/windows/wsl/install#install-wsl-command) `wsl --install` <br/> - Windows 10 version 2004 and higher (Build 19041 and higher) or Windows 11 |
32-
| <img src="https://th.bing.com/th/id/R.7802b52b7916c00014450891496fe04a?rik=r8GZM4o2Ch1tHQ&riu=http%3a%2f%2f1000logos.net%2fwp-content%2fuploads%2f2017%2f03%2fLINUX-LOGO.png&ehk=5m0lBvAd%2bzhvGg%2fu4i3%2f4EEHhF4N0PuzR%2fBmC1lFzfw%3d&risl=&pid=ImgRaw&r=0" width="10" height="10" alt="Linux" /> **Linux** | <img src="https://upload.wikimedia.org/wikipedia/commons/e/e5/Green_tick_pointed.svg" width="20" height="20" alt="Supported" /> | <img src="https://upload.wikimedia.org/wikipedia/commons/e/e5/Green_tick_pointed.svg" width="20" height="20" alt="Supported" /> | Linux kernel 5.15 or higher |
30+
| <img src="https://www.pngplay.com/wp-content/uploads/3/Apple-Logo-Transparent-Images.png" width="15" height="15" alt="MacOS" loading="lazy" decoding="async"/> **MacOS** | [Guide](/keploy-explained/mac-linux.md) | [Guide](/server/installation/) | - Docker Desktop version must be 4.25.2 or above<br/> |
31+
| <img src="https://upload.wikimedia.org/wikipedia/commons/5/5f/Windows_logo_-_2012.svg" width="15" height="15" alt="Windows" loading="lazy" decoding="async"/> **Windows** | <img src="https://upload.wikimedia.org/wikipedia/commons/e/e5/Green_tick_pointed.svg" width="20" height="20" alt="Supported" loading="lazy" decoding="async"/> | <img src="https://upload.wikimedia.org/wikipedia/commons/e/e5/Green_tick_pointed.svg" width="20" height="20" alt="Supported" loading="lazy" decoding="async"/> | - Use [WSL](https://learn.microsoft.com/en-us/windows/wsl/install#install-wsl-command) `wsl --install` <br/> - Windows 10 version 2004 and higher (Build 19041 and higher) or Windows 11 |
32+
| <img src="https://th.bing.com/th/id/R.7802b52b7916c00014450891496fe04a?rik=r8GZM4o2Ch1tHQ&riu=http%3a%2f%2f1000logos.net%2fwp-content%2fuploads%2f2017%2f03%2fLINUX-LOGO.png&ehk=5m0lBvAd%2bzhvGg%2fu4i3%2f4EEHhF4N0PuzR%2fBmC1lFzfw%3d&risl=&pid=ImgRaw&r=0" width="10" height="10" alt="Linux" loading="lazy" decoding="async"/> **Linux** | <img src="https://upload.wikimedia.org/wikipedia/commons/e/e5/Green_tick_pointed.svg" width="20" height="20" alt="Supported" loading="lazy" decoding="async"/> | <img src="https://upload.wikimedia.org/wikipedia/commons/e/e5/Green_tick_pointed.svg" width="20" height="20" alt="Supported" loading="lazy" decoding="async"/> | Linux kernel 5.15 or higher |
3333

3434
On MacOS and Windows, additional tools are required for Keploy due to the lack of native eBPF support.

versioned_docs/version-2.0.0/concepts/reference/glossary/end-to-end-testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Despite the challenges, E2E testing is an important part of the software develop
4545

4646
Keploy generate E2E API tests with built-in-mocks or stubs by recording your application network calls making your testing process not only faster than unit tests but also incredibly efficient.
4747

48-
<img src="https://keploy.io/docs/gif/record-tc.gif"/>
48+
<img src="https://keploy.io/docs/gif/record-tc.gif" loading="lazy" decoding="async"/>
4949

5050
### How Keploy works?
5151

versioned_docs/version-2.0.0/concepts/reference/glossary/microservice-testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Microservice testing is the process of validating individual components of a mic
4141
## Overcoming Challenges with Keploy
4242

4343
Keploy is an innovative testing tool designed to address many of the challenges associated with microservices testing. Here's how it helps:
44-
<img src="https://keploy.io/docs/gif/record-replay.gif?raw=true"/>
44+
<img src="https://keploy.io/docs/gif/record-replay.gif?raw=true" loading="lazy" decoding="async"/>
4545
<br/>
4646

4747
- **Automated Test Case Generation**: Keploy can generate test cases by recording your application's network calls. This automation significantly reduces the time and effort required to create comprehensive test suites.

0 commit comments

Comments
 (0)