Forums

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

  1. galbaras
    Member
    Posted 11 months 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 11 months 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 11 months ago #

    Thanks, Aaron.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags