thoughtbot / carnival

An unobtrusive, developer-friendly way to add comments
MIT License
499 stars 30 forks source link

Add InitR, a single JS script to load Carnival #147

Closed pbrisbin closed 9 years ago

pbrisbin commented 9 years ago

This brings the loading of JS/CSS from Embed into the DOM that was currently being done directly on the Robots blog into a single initializer.

With this, default usage becomes:

<script src="https://carnival.thoughtbot.com/sites/1/init.js"></script>
<script>
  Carnival.init();
</script>

Once deployed, I can make this change to the blog: http://sprunge.us/iVdV?diff

pbrisbin commented 9 years ago

/cc @cpytel

cpytel commented 9 years ago

This looks like a good change. :+1: