May 29, 2023, 7:51 a.m. | Daniel Primo

DEV Community dev.to

Creating a Progressive Web Application (PWA) using HTML and Vanilla JavaScript with an mp3 audio player can be amazing learning.


We will look into a basic example of how service workers can be used for caching in a PWA. Our application is an MP3 Player, but the principles here are applicable to any PWA.





Manifest.json


Let's start with manifest.json:



{
"short_name": "PWA MP3 Player",
"name": "Progressive Web Application MP3 Player",
"description": "An MP3 Player …

application audio caching example html javascript look mp3 service web workers

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Senior Machine Learning Engineer (MLOps)

@ Promaton | Remote, Europe

Research Scientist, Demography and Survey Science, University Grad

@ Meta | Menlo Park, CA | New York City

Computer Vision Engineer, XR

@ Meta | Burlingame, CA