Develop experiences for the sidebar in Microsoft Edge
Artikel
The sidebar in Microsoft Edge is a persistent pane located on the side of the browser, which coexists with the primary content of the browser. The sidebar allows users to easily access popular websites and utilities alongside their browser tabs. The content in the sidebar augments the user's primary task by enabling side-by-side browsing and minimizing the need to switch contexts between browser tabs. By using the sidebar in Microsoft Edge, users can access the productivity tools they need while staying in their workflow.
As a developer, you can leverage the sidebar for your own experiences in two ways:
By adapting your existing Progressive Web App (PWA) to run in the sidebar.
By making use of the Sidebar API in your Microsoft Edge extension.
Choose the right approach
The two different ways in which you can leverage the sidebar are designed to meet different developer needs. The following are the key differences between sidebar apps and sidebar extensions:
Aspect
Sidebar app
Sidebar extension
Term definition
A Progressive Web App (PWA) that runs in the sidebar.
A Microsoft Edge extension that displays content in the sidebar.
Distribution
Like a website, the app is hosted on the app's web server.
Sidebar apps allow you to adapt your existing Progressive Web App (PWA) to securely run alongside other browser tabs for a side-by-side co-browsing experience. This approach is a great choice for web developers who want to offer companion experiences including social, messaging, or media apps that don't require advanced extensions capabilities.
The sidebar app infrastructure helps users discover and install sidebar apps as they browse the web, providing great discoverability for your app just by making a simple change to your web application manifest file. Sidebar apps are a great option if you want to reuse your existing web app for the sidebar in Microsoft Edge and make full use of the web capabilities that are available to PWAs.
Microsoft Edge extensions (add-ons) can optionally use the sidebar API to show a custom UI in the sidebar in Microsoft Edge. This is in addition to the other places extensions also appear in, such as in the Microsoft Edge toolbar, or as popups.
If your app's experience relies on powerful extensions APIs, for example to read or modify the current page, then a sidebar extension provides these capabilities. Users can find and install these extensions through the Microsoft Edge Add-ons website. The Microsoft Edge team continues to evolve these sidebar extensibility models and welcomes your feedback. To leave feedback, create a new issue on the repo, or search for existing issues and join existing conversations.
PWABuilder er et værktøj med åben kildekode, der er udviklet af Microsoft, og som strømliner processen med at udrulle PWA'er (Progressive Web Apps). Det forenkler PWA-udvikling ved at automatisere oprettelsen af vigtige komponenter, hvilket giver en brugervenlig grænseflade til tilpasning og pakker PWA'er til forskellige platforme og appbutikker. PWABuilder er et ideelt valg til projekter, der kræver en problemfri applignende oplevelse på tværs af forskellige enheder og netværksforhold. Ved hjælp af PWABuil
Testing for coming changes that could impact compatibility of your site with Microsoft Edge. Moving users from Internet Explorer. Setting up tracking prevention. Detecting Microsoft Edge from your website. Detecting Windows 11 via User-Agent Client Hints.