@blameitonyourisp/blurrid
Version:
Generate and render blurred placeholders for lazy loaded images.
28 lines (21 loc) • 752 B
JavaScript
// Copyright (c) 2024 James Reid. All rights reserved.
//
// This source code file is licensed under the terms of the MIT license, a copy
// of which may be found in the LICENSE.md file in the root of this repository.
//
// For a template copy of the license see one of the following 3rd party sites:
// - <https://opensource.org/licenses/MIT>
// - <https://choosealicense.com/licenses/mit>
// - <https://spdx.org/licenses/MIT>
/**
* @file Demo site entrypoint.
* @author James Reid
*/
// @ts-check
// @@imports-dependencies
import { BlurridImageWorker } from "../../package/web.js"
// @@imports-module
import "./icons.js"
// @@body
customElements.define("blurrid-image", BlurridImageWorker, { extends: "img" })
// @@no-exports