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

github.com/polymerlabs/amp-viewer

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/polymerlabs/amp-viewer

  • v0.0.0-20171010171337-a80f59324fb5
  • Source
  • Go
  • Socket score

Version published
Created
Source

amp-viewer

<amp-viewer> is a vanilla custom element that loads an AMP document into a shadow root on your page. Shadow DOM ensures styles of the AMP document are encapsulated, and it is lighter than embedding an iframe.

Demo

<amp-viewer src="demo/sample-content/experience-daydream-today.html"></amp-viewer>

API

PropertyDescription
srcThe URL of an AMP article. If it's on a different domain, it must be CORS enabled (as it will be fetched by XHR).

FAQs

Package last updated on 10 Oct 2017

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