I just wondered whether the client side could detect if the site location is http or https protocol, and the switch automatically to the more secure https before loading the rest of the page. It turns out this is pretty easy to do, so I’ll add that function as well.
Done, added force_https.js to the <head> of all webpages. It’s a bit redundant to then call the method within every <page>.js, but I think it’s worth legibility.
I just wondered whether the client side could detect if the site location is http or https protocol, and the switch automatically to the more secure https before loading the rest of the page. It turns out this is pretty easy to do, so I’ll add that function as well.