Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Latest commit

 

History

History
39 lines (29 loc) · 845 Bytes

google_plus.md

File metadata and controls

39 lines (29 loc) · 845 Bytes
title contributors issues
Google+
user name
reed
Nick Reed
repo number
reed/turbolinks-compatibility
9

Google+

developers.google.com/+/web/+1button

Official Implementation

<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<g:plusone></g:plusone>

Solution

  1. Move the script tag inside the <head> and set the loading mechanism to 'explicit'.

    <head>
      <script type="text/javascript" src="https://apis.google.com/js/plusone.js" parsetags="explicit"></script>
    </head>
  2. Add the following lines to your application's javascript:

    $ ->
      gapi.plusone.go()
      $(document).on 'page:load', gapi.plusone.go