Hardcoded Styles/@Boot.css dropped some webpack KB overhead. We are going more mobile!

Also replaced some charAt() with []
This commit is contained in:
djmaze 2020-08-08 17:20:35 +02:00
parent 0d81b2ce88
commit ba8a566c69
5 changed files with 47 additions and 43 deletions

View file

@ -13,7 +13,8 @@ export function jassl(src, async = false) {
}
return new window.Promise((resolve, reject) => {
const element = window.document.createElement('script');
const doc = window.document,
element = doc.createElement('script');
element.onload = () => {
resolve(src);
@ -26,7 +27,7 @@ export function jassl(src, async = false) {
element.async = !!async;
element.src = src;
window.document.body.appendChild(element);
doc.body.appendChild(element);
}) /* .then((s) => {
const found = s && rainloopCaches ? s.match(/rainloop\/v\/([^\/]+)\/static\//) : null;