Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
async function try_import(url) {
let status;
try {
await import(url);
status = "OK";
} catch (err) {
status =;
status = status.padEnd(12);
return status + url;
async function main() {
const imports = [
"/just my imagination.js",
let results = await Promise.all(;
results.forEach(l => console.log(l));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment