Announcement

Collapse
No announcement yet.

I should know this...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    I should know this...

    I know I can test g.secure and switch the link below from http:// to https://

    <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key="></script>

    The question is, can I just do //maps.googleapis.com/maps/api/js? and drop the http:
    Ray Yates
    "If I have seen further, it is by standing on the shoulders of giants."
    --- Sir Isaac Newton

    #2
    In the past often used // which always worked for me. However I don't do that anymore, I just I load all external resources using https regardless of current secure conditions on the page.
    M.A.D.* since 1997

    http://www.scotsscripts.com

    *miva application developers

    Comment


      #3
      For resources, this works. But the benefit I see of using // over https: in general is that if you don't have a valid SSL cert (i.e, on a dev site or local) you can get that dreaded unsecured page load message if its on a page link...i personally don't see a downside to //.
      Bruce Golub
      Phosphor Media - "Your Success is our Business"

      Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
      phosphormedia.com

      Comment


        #4
        I do this with all CDN references.
        I read somewhere that it was preferable... although I have no clue where I read it, so can't offer any reason why.
        William Gilligan - Orange Marmalade, Inc.
        www.OrangeMarmaladeinc.com

        Comment


          #5
          The only downside of // I saw so far was the mailing campaign.
          If you copy your image links as-is, they not gonna show up in the mailbox (gmail for sure rejects // ).

          Using // pretty much everywhere I can

          Comment


            #6
            I'm updating the Map Location module which contains several API calls. I think I'll just go with //
            Ray Yates
            "If I have seen further, it is by standing on the shoulders of giants."
            --- Sir Isaac Newton

            Comment

            Working...
            X