Skip to content

avindra/mikiwedia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage example:

https://commons.wikimedia.org/wiki/User:Aavindraa/common.js

Install type

The rolling release will update automatically.

Use the other option if you want a specific version.

🏎️ Rolling release

Set it up once, and you might just need to do a hard reload occasionally to download the new scripts.

Any of the below can be used as the src value:

🔢 Specific version

By using jsdelivr, you can specify a version to use. For example, you could pick the 0.2.0 release. Note: don't actually use v0.2.0 as it has known bugs.

common.js code example

This is the code to use in your common.js.

In Firefox/Chrome: ctrl+shift+i to use developer console.

const s = document.createElement("script");
s.type = "module";
s.src = '//dra.vin/mikiwedia/index.js';
document.body.appendChild(s);

Local testing looks more like:

var l = document.createElement("script");
l.type = "module";
l.src = 'https://localhost:8000/index.js';
document.body.appendChild(l);

Design

  • ES Modules
  • Don't add third-party libraries
    • Limit use of jQuery and builtins
  • Lazy-load bigger modules with dynamic imports

Features

In lieu of an actual feature list, check releases for now:

https://github.com/avindra/mikiwedia/releases