Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Latest commit

 

History

History
23 lines (17 loc) · 805 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 805 Bytes

@dgraph-io/community

Source code of the @dgraph-io/community npm package

This package isn't designed to be used by other projects, but we've published the source code in the spirit of transparency; educational purposes; sharing our best practices.

Features

  • creates CTA button
  • wraps mailchimp embeds in a more webapp-like API
    • also has little hacks to improve user experience in case of multiple domains
  • initializes analytics scripts
  • best good enough practices in code bundling and minification
  • published as a npm package to enable the power of unpkg.com

Usage

Add a script tag to your page somewhere after the </body> tag:

<script src="//unpkg.com/@dgraph-io/community"></script>
WARNING: be careful: it won't work if placed inside or before <body>!