Son CV dans un terminal web en Javascript!
https://terminal-cv.gregandev.fr
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
428 B
17 lines
428 B
2 years ago
|
"use strict";
|
||
|
|
||
|
var cacheLoader = require('../cacheLoader');
|
||
|
|
||
|
module.exports = cacheLoader(function (bundle, priority, isModule) {
|
||
|
var link = document.createElement('link');
|
||
|
link.charset = 'utf-8';
|
||
|
link.rel = isModule ? 'modulepreload' : 'preload';
|
||
|
link.href = bundle;
|
||
|
|
||
|
if (priority) {
|
||
|
link.as = priority;
|
||
|
}
|
||
|
|
||
|
document.getElementsByTagName('head')[0].appendChild(link);
|
||
|
return Promise.resolve();
|
||
|
}, 'preload');
|