This is an alternative to the Modern Script Loading tchnique, that doesn't need to wait for the load event.
This technique has been successfully tested down to IE9.
<!DOCTYPE html>
<html lang="en">| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width,initial-scale=1.0"> | |
| <title>A Static Email Form Example</title> | |
| <link rel="stylesheet" href="css/index.css"> | |
| <script defer src="//unpkg.com/static.email"></script> | |
| <script defer src="js/index.js"></script> | |
| </head> |
This is an alternative to the Modern Script Loading tchnique, that doesn't need to wait for the load event.
This technique has been successfully tested down to IE9.
<!DOCTYPE html>
<html lang="en">This gist contains few scripts I use daily to help myself work with git for both personal projects and work.
My GNOME tips are here https://gist.github.com/WebReflection/7538865e739c0c2eeb542dfac235e84c
This utility finds outer dependent modules. I've used it on the top most folder with all cloned repo.
| const env = { | |
| m1: `import {func} from './m2.mjs'; console.log(func());`, | |
| m2: `export function func() { return 'abc'; }` | |
| }; | |
| const inlineModule = (env, text) => `data:text/javascript;base64,${ | |
| btoa(inlineModules(env, text)) | |
| }`; | |
| const inlineModules = (env, text) => text.replace( |
This list shows the most basic view with a counter in various libarries and patterns.
This is some sort of answer to recent posts regarding Web Components, where more than a few misconceptions were delivered as fact.
Let's start by defining what we are talking about.
As you can read in the dedicated GitHub page, Web Components is a group of features, where each feature works already by itself, and it doesn't need other features of the group to be already usable, or useful.
Placed on the root of all git repositories, and made executable via chmod +x find, this utils displays folders with a package.json that depends on it.
#!/usr/bin/env node
// ./find module-name
// simple utility to find folders depending on module-name
// by Andrea Giammarchi - @webreflection
Photo by Ricardo Gomez Angel on Unsplash
This gist is a collection of common patterns I've personally used here and there with Custom Elements.
These patterns are all basic suggestions that could be improved, enriched, readapted, accordingly with your needs.
Random Wallpapers is awesome, but it also keeps changing wallpapers (which is what I like about it).
This is a collection of wallpapers I liked the most, specially suitable for dark theme mode.
Photo by Jonatan Pie on Unsplash