Can we switch the links that are inserted in the page to be protocol-less? This would allow SSL based sites to work better without any warnings that insecure content is loaded.
So for example, instead of:
drupal_add_js('http://search.usa.gov/javascripts/jquery/jquery.autocomplete.min.js', array('type' => 'external', 'defer' => TRUE));
Use this:
drupal_add_js('//search.usa.gov/javascripts/jquery/jquery.autocomplete.min.js', array('type' => 'external', 'defer' => TRUE));
I can submit a patch if the community thinks this is a good idea.
Comments
Comment #1
timwoodGreat idea Mr. Bornholtz! I've implemented this in 6.x and 7.x branches and I'm creating the first "stable" release for 7.x and updated release for 6.x!