An aSP is an aSP singleFile progressiveWebApp.
It's a big deal, because this carefully built PWA consists of a single file.
No, it isn't.
Even if you have a single HTML file, you're probably going to end up with almost twice as many files as the fingers you have on one hand.
Ahem. Because. Usually even a very simple web page will have a number of file dependencies.
So much so, you can easily get to seven files without trying. Still not convinced?
Keep count as we go through the following list...:
Start with:
- an HTML document (
.html
)
Then, most HTML documents will be accompanied by:
- an associated CSS Stylesheet, containing the styles (
.css
) - an associated JS Scriptsheet, containing the scripts (
.js
) - a
favicon
Additionally, an HTML document will usually refer to:
- images (
.jpg
,.gif
,.png
,.webp
)
Additionally, the HTML document may also refer to:
- videos (
.mp4
,avi
)
Sometimes, it may even refer to:
- audio files, music or sound effects (
.mp3
)
Finally, if the HTML document is a Progressive Web App (PWA), it will also be accompanied by:
- a
manifest.webmanifest
- a service worker (
.js
)
This means, if we take a standard PWA with a single image (but no sound or video), we're still looking at no fewer than seven separate files:
- HTML Document
- Image
- CSS Stylesheet
- JS Script
- Favicon
- Web Manifest
- Service Worker
An aSP uses a combination of established web techniques like:
- data URLs
- SVG Favicons
- JavaScript Blob Objects
- the
createObjectURL()
method
and it really does reduce this set of seven files (or more) to one single file.