Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lite-iframe

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lite-iframe

  • 0.3.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
56
decreased by-31.71%
Maintainers
1
Weekly downloads
 
Created
Source

Logo

<lite-iframe />

A web component which enhances user experience by lazy loading iframes and providing a better fallback user interface

View Demo · Report Bug · Request Feature

About The Project

Built With

Getting Started

To get a local copy up and running follow these simple steps.

  1. Install NPM packages
npm install lite-iframe
  1. Include the lite-iframe component file in your project root.
import 'lite-iframe';

OR

  1. You can include unpkg CDN link in the project file.
<script
  src="https://unpkg.com/lite-iframe@0.2.0/dist/lite-iframe.esm.js"
  type="module"
></script>

Usage

You can use lite-iframe like normal iframe.

<!-- Codepen -->
<lite-iframe
  scrolling="no"
  title="Piccalilli CSS Utility — Issue  #2 — Full bleed utility"
  src="//codepen.io/andybelldesign/embed/Nmxrwv/?height=300&theme-id=dark&default-tab=css,result"
  frameborder="no"
  allowtransparency="true"
  allowfullscreen="true"
>
</lite-iframe>

<!-- Youtube -->
<lite-iframe
  type="youtube"
  src="https://www.youtube.com/embed/lzQyH-nX0u0"
></lite-iframe>

For live example, please see the demo

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Annamalai Saravanan - @asvny_

Project Link: https://github.com/asvny/lite-iframe

Acknowledgements

FAQs

Package last updated on 16 Jan 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc