Skip to content

Commit 6e617e2

Browse files
committed
🗒 Updated readme
1 parent 5dac86b commit 6e617e2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Lazy Loader
22

3-
A lightweight (1.6kb) Web Component based lazy loading library.
3+
A lightweight (~2kb) Web Component based lazy loading library.
44

55
## Install
66

@@ -31,6 +31,8 @@ import { configure, update, mount, css } from "https://cdn.jsdelivr.net/npm/@cod
3131
configure({
3232
jsDir: "/js",
3333
cssDir: "/css",
34+
default: "lazy", // optional
35+
lazierCSS: false, // optional
3436
});
3537
3638
// Alternatively if the default settings (seen above) are okay you could simply call the update function instead
@@ -70,6 +72,8 @@ type Loading = "eager" | "lazy";
7072
interface LazyLoaderSettings {
7173
cssDir?: string;
7274
jsDir?: string;
75+
default?: Loading;
76+
lazierCSS: boolean;
7377
};
7478
7579
declare const configure: (settings?:Partial<LazyLoaderSettings>) => void;

0 commit comments

Comments
 (0)