mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 14:37:02 +03:00
Hardcoded Styles/@Boot.css dropped some webpack KB overhead. We are going more mobile!
Also replaced some charAt() with []
This commit is contained in:
parent
0d81b2ce88
commit
ba8a566c69
5 changed files with 47 additions and 43 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue