Building Modern Cross Browser Web Extensions: Background Scripts and Messaging (Part 4)

In the previous post , we explored how to work with content scripts and build isolated UIs for our extension. In this post, we will learn how to work with background scripts as well as about the communication process between the content scripts and the background scripts. Background Scripts Background scripts enable us to listen to browser events (such as opening/closing tabs, bookmarking a page,…