Alternative Tweet Embeds

Alternative Tweet Embeds

Embed tweets without compromising your users' privacy and your site's performance.

Learn more on stefanbohacek.com and in the project's source code. Also available as a WordPress plugin.

How to use

See detailed instructions in the project's README file. After you remix this app, below you will find the code you will need to add to the page where you're embedding tweets.

<!DOCTYPE html>
  <html>
  <head>
      <meta charset="utf-8">
      <link href="https://alternative-twitter-embeds.glitch.me/css/styles-bs.css" rel="stylesheet" type="text/css">
  </head>
  <body>
      <TWEET CODE>
      <script src="https://alternative-twitter-embeds.glitch.me/js/tweets.js"></script>
  </body>
  </html>

If you're using Bootstrap v4 on your site, you can load an alternative slimmed down stylesheet.

<!DOCTYPE html>
  <html>
  <head>
      <meta charset="utf-8">
      <link href="https://alternative-twitter-embeds.glitch.me/css/styles.css" rel="stylesheet" type="text/css">
  </head>
  <body>
      <TWEET CODE>
      <script src="https://alternative-twitter-embeds.glitch.me/js/tweets.js"></script>
  </body>
  </html>

Be sure to remove any script tags from the embed code that Twitter gives you.

Examples

Original project created by @stefanbohacek View source More projects