WordPress.org

Forums

AddThis Sharing Buttons
[resolved] Missing protocol in script (3 posts)

  1. galbaras
    Member
    Posted 4 years ago #

    The AddThis code puts a script into the page code that calls a JavaScript file without specifying the protocol:

    <script type="text/javascript" src="//s7.addthis.com/js/250/addthis_widget.js#pubid=galbaras"></script>

    I think it should be:

    <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=galbaras"></script>

  2. Aaron Jorbin
    Member
    Posted 4 years ago #

    It is called "relative reference" or "protocol-less" and is used to serve the file based on if the page is http or https.

    For Reference:
    http://encosia.com/cripple-the-google-cdns-caching-with-a-single-character/
    http://tools.ietf.org/html/rfc3986#section-4.2

  3. galbaras
    Member
    Posted 4 years ago #

    Thanks, Aaron.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • AddThis Sharing Buttons
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags