1
0
mirror of https://github.com/locomotivemtl/locomotive-boilerplate.git synced 2026-01-15 00:55:08 +08:00

Merge branch 'master' of github.com:locomotivemtl/locomotive-boilerplate into feature/eager-fonts

This commit is contained in:
arnvvd
2022-10-05 14:38:55 -04:00
8 changed files with 5530 additions and 516 deletions

View File

@@ -42,15 +42,15 @@ function init() {
* Eagerly load the following fonts.
*/
if (isFontLoadingAPIAvailable) {
loadFonts(EAGER_FONTS, true).then((eagerFonts) => {
loadFonts(EAGER_FONTS).then((eagerFonts) => {
html.classList.add('fonts-loaded');
console.group('Eager fonts loaded!', eagerFonts.length, '/', document.fonts.size);
console.group('State of eager fonts:')
eagerFonts.forEach((font) => console.log(font.family, font.style, font.weight, font.status/*, font*/))
console.groupEnd()
console.group('State of all fonts:')
document.fonts.forEach((font) => console.log(font.family, font.style, font.weight, font.status/*, font*/))
console.groupEnd()
// console.group('Eager fonts loaded!', eagerFonts.length, '/', document.fonts.size);
// console.group('State of eager fonts:')
// eagerFonts.forEach((font) => console.log(font.family, font.style, font.weight, font.status/*, font*/))
// console.groupEnd()
// console.group('State of all fonts:')
// document.fonts.forEach((font) => console.log(font.family, font.style, font.weight, font.status/*, font*/))
// console.groupEnd()
});
}
}

1052
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -21,15 +21,15 @@
"svg4everybody": "^2.1.9"
},
"devDependencies": {
"autoprefixer": "^10.4.4",
"browser-sync": "^2.27.9",
"autoprefixer": "^10.4.12",
"browser-sync": "^2.27.10",
"concat": "^1.0.3",
"esbuild": "^0.14.27",
"kleur": "^4.1.4",
"esbuild": "^0.14.54",
"kleur": "^4.1.5",
"node-notifier": "^10.0.1",
"node-sass": "^7.0.1",
"postcss": "^8.4.12",
"purgecss": "^4.1.3",
"postcss": "^8.4.17",
"purgecss": "^5.0.0",
"svg-mixer": "^2.3.14",
"tiny-glob": "^0.2.9"
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -62,10 +62,6 @@
<div class="o-container">
<h1 class="c-heading -h1">Hello</h1>
</div>
<div style="height: 20000px; background: rgb(144,0,240); background: linear-gradient(180deg, rgba(144,0,240,1) 0%, rgba(0,0,215,1) 35%, rgba(0,212,255,1) 100%); "></div>
<h2 style="font-family: Source Sans, sans-serif;">Hello, World!</h2>
</main>
<footer data-scroll-section>