cuid | alias | tags | ||
---|---|---|---|---|
human<% tp.file.creation_date("YYYYMMDD-HHmmss") %> |
|
person/friends, person/family, person/coworker, person/rwc |
🎂 Birthday: 💌 Email: ☎️ Phone:
// Core assets | |
let coreAssets = []; | |
// On install, cache core assets | |
self.addEventListener('install', function (event) { | |
// Cache core assets | |
event.waitUntil(caches.open('app').then(function (cache) { | |
for (let asset of coreAssets) { | |
cache.add(new Request(asset)); |
This is the technical implementation of the idea and concept described in my article “Why don’t we use HTML to author web components?”
Instead of using template literals, constructors and other specifics to define CustomElements, this is a proposal to just use standard HTML to define CustomElements.
The goal is to import CustomElements like this:
/* | |
IMPORTANT: Change the fonts on lines 31-35 to make this work the way you want! | |
*/ | |
:root { | |
--dark0: #2e3440; | |
--dark1: #3b4252; | |
--dark2: #434c5e; |
By the way, I'm available for tutoring and code review :)
new Promise
?.then
callback yet?](https://gist.github.com/joepie91/4c3a10629a4263a522e3bc4839a28c83#6-but