; // The literal __('...') has to stay visible at the call site because the msgid // scanner in app/plugins/translate/models/po_string.php only recognises an // exact allowlist of function names; hiding it behind another wrapper would // make the string look unused and get it pruned from the catalog. // // The JSON_HEX_* flags escape ' " < > &, which keeps the output safe inside // single-quoted JS, double-quoted JS, template literals, HTML attributes, and // prevents a translated "" from breaking out of the block. // --------------------------------------------------------------------------- function js_str($value) { return json_encode( (string)$value, JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_TAG | JSON_HEX_AMP ); } // Only trust proxy headers when the request was verified to come from BunnyCDN. // Without this guard a direct-to-origin attacker could spoof X-Forwarded-For to // rotate their apparent IP and trivially bypass rate limiting. if ($secretValid) { if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ipParts = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']); $_SERVER['REMOTE_ADDR'] = trim($ipParts[0]); } // Fix HTTPS detection behind Bunny.net CDN (SSL termination at proxy). // Without this, CakePHP sets FULL_BASE_URL to http:// causing redirect loops. if (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') { $_SERVER['HTTPS'] = 'on'; } } Chrome update makes browser faster and more energy efficient
Every product checked Rated 9+ Pay later or in instalments
Other
Other January 13, 2021

Chrome update makes browser faster and more energy efficient

The last Chrome update of the year is all about speeding up the browser. Especially when you often have a lot of tabs open, you should notice a difference after installing Chrome 87.

Open tabs can slow down the Chrome browser significantly. Google has been tinkering with the way Chrome handles websites that are open in the background for a while. The company discovered that JavaScript plays a major role in this. More than 40 percent of Chrome's processor consumption is due to this.

By limiting the way JavaScript is active in background tabs, the CPU is loaded up to five times less. An additional advantage is that this approach has a positive impact on the battery life of mobile devices. They would last over an hour longer after Chrome update 87.

Speed gain

Further optimization ensures that the browser starts up to 25 percent faster and loads websites up to 7 percent faster. Returning to a previous page is also smoother, because it is temporarily stored in the cache. The page in question does not have to reload completely.

To check if you're running the latest Chrome version, go to chrome: // settings / and then About Chrome, the bottom option. If a more recent version is available, it will now be downloaded automatically. Restart the browser for the update to take effect.

Finished reading?

Discover more articles

Explore all our tips, news and inspiration in the SKIKK blog.

Free shipping in EU*
14 days free return
2 year warranty
Assembled in Europe