Explicitly specify the protocol in external resources

Created on 20 April 2023, about 1 year ago
Updated 20 September 2023, 9 months ago

For example:

bootstrap_cdn:
  js:
    //cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js: { type: external, minified: true }
...

JS file located on httpS://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js

If current website protocol is http first browser will load http://cdn... and will get 307 redirect.
And only after that browser will load httpS://cdn....
This redirect takes time.

I think should be:

bootstrap_cdn:
  js:
    https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js: { type: external, minified: true }
...
📌 Task
Status

Active

Version

5.5

Component

Code

Created by

🇺🇦Ukraine super_romeo Kiev

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024