Cornerstone Blocking Time on Mobile Devices - Avoid serving legacy JavaScript to modern browsers

I reported this several months ago and I am doing it again. The main issue where this surfaces is on mobile devices. It is from cornerstone js file. The warning that is provided due to the increased blocking time in mobile devices is:

Avoid serving legacy JavaScript to modern browsers

Blockquote Polyfills and transforms enable legacy browsers to use new JavaScript features. However, many aren’t necessary for modern browsers. For your bundled JavaScript, adopt a modern script deployment strategy using module/nomodule feature detection to reduce the amount of code shipped to modern browsers, while retaining support for legacy browsers. More Info

Examples from cornerstone js:

[:2:17070] @babel/plugin-transform-classes
[:2:132483] Array.prototype.filter
[2:133030] Array.from
[:2:137861] Object.defineProperties
[:2:148680] Object.getOwnPropertyNames

There is more, the above are just examples.

Hello @Bark201,

@Alexander has responded to you about the issue. He mentions that most of the changes will be seen not until the release of Cornerstone 5.1. We do not have an ETA for the next release though.

Please watch out for the release anytime soon.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.