Found Image Protocol Relative Theme Assets | Plugin Review Network Skip to Content

Plugin Review Network

Plugin Review Network

an eye on the best wordpress plugins
Show Sidebar Hide Sidebar
[+] Sidebar [-] Sidebar
Plugin:
Rated:
80%
4 Stars (2 votes)

Home

WP.Org

ReadMe

Support
  • Author:
    Ryan J. Bonnell
Version: 1.0
Requires: WP 3.6
Last Updated:4407 days ago
Downloads:1749
Installations: 200+
Usage Retention:11.44%
Tags:
    asset, CSS, enqueue, http, https, javascript, JS, protocol, relative, scheme, script, script_loader_src, ssl, style_loader_src, stylesheet, stylesheet_directory_uri, template_directory_uri, url
Download Plugin Package

Protocol Relative Theme Assets

Released on May 21, 2014.
Download Plugin Package

Version: 1.0

Transforms enqueued CSS and JavaScript theme URLs to use protocol-relative paths.

  • Description
  • Changelog
  • Installation


This plugin transforms any registered, enqueued CSS or JavaScript URLs into their "protocol-relative" equivalent.

Consider the following examples:

Protocol Relative CSS URL

<link href="//example.com/wp-content/themes/twentytwelve/style.css" />

Protocol Relative Javascript URL

<script src="//example.com/wp-includes/js/jquery/jquery.js"></script>

More appropriately called a "network-path reference" or "scheme-relative path", a protocol-relative URL helps to avoid common scenarios such as:

  • Broken SSL padlock icon in browser's address bar when showing mixed HTTP/HTTPS content
  • Error message in Internet Explorer saying, "This Page Contains Both Secure and Non-Secure Items"
  • Serving HTTP assets when viewing HTTPS pages

The idea of using protocol-relative URLs was popularized by Paul Irish and has become common as sites switch between serving HTTP and HTTPS assets.

This plugin will standardize all properly enqueued theme files to use protocol-relative paths, even those added from third-party plugins.

Note: This plugin does not transform any image paths that may be embedded in the WordPress editor or output as featured images or elsewhere in the theme -- it presently only works on enqueued CSS/JavaScript files.

1.0

  • Initial release


  1. Activate the plugin through the Plugins menu in the WordPress admin.


 

Click here to cancel reply.

Click here to cancel reply.


*

*


Please copy the string gWW8wb to the field below:

Home | Sitemap | Contact
Network Skin Theme for BioShip by WordQuest
Password Reset
Please enter your e-mail address. You will receive a new password via e-mail.