WordPress plugin intelligence profile

Protocol Relative Theme Assets

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

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 4.0
Current version1.0
WordPress coverageTested up to WordPress 4.0
Minimum stackWP 3.6 · PHP —
Directory statusactive
Last directory update21 May 201412y ago
Active installations20Adoption metric — not a quality score
WordPress.org rating4.0 / 5 from 2 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Protocol Relative Theme Assets version 1.0 as active, updated 12y ago and tested up to WordPress 4.0.

Overview

About this plugin

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

Consider the following examples:

Protocol Relative CSS URL

css" />

Protocol Relative Javascript URL

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.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • javascript
  • protocol
  • relative
  • script
  • stylesheet
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 4.0

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 4.0.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to4.0
Minimum requirementsWordPress 3.6 · PHP not listed
Update activity21 May 201412y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.