# What is service worker and how do I add it in order to utilise the network optimisation feature?

?

##### Post Metadata
- Posted at: about 6 years ago
- Author title: Blog Coach | See a Man About a Blog. Blogging, Social Media &amp; Internet Marketing Tips



## Comments
### Comment 1

A service worker can be considered as a Javascript that runs in the background in a browser and can determine the user&#39;s network and intercept the requests going out from the browser. 

By installing a service worker, and loading the network-optimization plugin provided by ImageKit, the image requests get intercepted and their URL is modified to the right quality level depending on the user&#39;s network.

You can read more about installing a generic service worker here - https://developers.google.com/web/fundamentals/codelabs/offline and about adding ImageKit&#39;s network-based optimization plugin here - https://docs.imagekit.io/features/network-based-image-optimization

##### Comment Metadata
- Posted at: about 6 years ago
- Author title: Hiring across sales, marketing and tech | Co-Founder at ImageKit.io




## Related Product
[ImageKit](https://www.g2.com/products/imagekit/reviews)

## Related Category
[Digital Asset Management](https://www.g2.com/categories/digital-asset-management)

## Related discussions
- [How well does Trello scale into a larger team?](https://www.g2.com/discussions/1-how-well-does-trello-scale-into-a-larger-team)
  - Posted at: about 13 years ago
  - Comments: 6
- [Can we please add a new section](https://www.g2.com/discussions/2-can-we-please-add-a-new-section)
  - Posted at: about 13 years ago
  - Comments: 0
- [Quantifiable benefits from implementing your CRM](https://www.g2.com/discussions/quantifiable-benefits-from-implementing-your-crm)
  - Posted at: about 13 years ago
  - Comments: 4


