New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

templace

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

templace

<template> progressive content loader

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

templace

Progressively load template content via JavaScript. Useful for wrapping low-priority heavy content like iframe embeds such to load after initial page load and only when JavaScript is enabled

npm install templace

usage

<template data-templace>
  <iframe src="..."></iframe>
</template>

Include script late in page for best performance benefits

<script src="templace.js" async defer></script>

Templacements happen automagically when the script loads or anytime you invoke the export

templace()

Normalize template CSS for browsers without support

template {
  display: none;
}

status

It's a simple minimum viable package with more granular features in consideration

demo

https://ryanve.github.io/templace/

Keywords

dom

FAQs

Package last updated on 17 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts