Title: [11.2.x] fix(docs-infra): fix angular.io on IE 11 by gkalpak · Pull Request #41184 · angular/angular · GitHub
Open Graph Title: [11.2.x] fix(docs-infra): fix angular.io on IE 11 by gkalpak · Pull Request #41184 · angular/angular
X Title: [11.2.x] fix(docs-infra): fix angular.io on IE 11 by gkalpak · Pull Request #41184 · angular/angular
Description: This is a backport of #41162 to the 11.2.x branch. fix(docs-infra): avoid unnecessarily loading Custom Elements ES5 shim: The custom elements spec is not compatible with ES5 style classes. This means ES2015 code compiled to ES5 will not work with a native implementation of Custom Elements. To support browsers that natively support Custom Elements but not ES2015 modules, we load @webcomponents/custom-elements/src/native-shim.js, which minimally augments the native implementation to be compatible with ES5 code. (See here for more details.) Previously, the shim was included in polyfills.ts, which meant it was loaded in all browsers (even those supporting ES2015 modules and thus not needing the shim). This commit moves the shim from polyfills.ts to a nomodule script tag in index.html. This will ensure that it is only loaded in browsers that do not support ES2015 modules and thus do not needed the shim. NOTE: This commit also reduces size of the polyfills bundle by ~400B (52609B --> 52215B). fix(docs-infra): fix angular.io on IE 11: Previously, the angular.io app was broken on IE 11. In particular, pages that included Custom Elements would fail to load, because the Reflect.construct() method (which the Custom Elements ES5 shim relies on) was not available. This commit fixes this by loading the polyfill for Reflect.construct() on browsers that do not support ES2015 (including IE 11).
Open Graph Description: This is a backport of #41162 to the 11.2.x branch. fix(docs-infra): avoid unnecessarily loading Custom Elements ES5 shim: The custom elements spec is not compatible with ES5 style classes. This ...
X Description: This is a backport of #41162 to the 11.2.x branch. fix(docs-infra): avoid unnecessarily loading Custom Elements ES5 shim: The custom elements spec is not compatible with ES5 style classes. This ...
Opengraph URL: https://github.com/angular/angular/pull/41184
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:ad99492d-63b3-fd4f-b16f-6b93eb1b8af2 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A784:177B1F:233857:2F70DB:6A616E12 |
| html-safe-nonce | 3ed5eedff34926f4dde1007325cf0df3a0f61aca05ccfd0ba602fd18f5c6da4b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzg0OjE3N0IxRjoyMzM4NTc6MkY3MERCOjZBNjE2RTEyIiwidmlzaXRvcl9pZCI6IjQwODk4MjIwNTQ2NTY4NjM3NjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bc211543ed735560dd6d3684432309c8884505a79f76b5034a142e3d9d46cbb9 |
| hovercard-subject-tag | pull_request:591087737 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/angular/angular/pull/41184/files |
| twitter:image | https://avatars.githubusercontent.com/u/8604205?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/8604205?s=400&v=4 |
| og:image:alt | This is a backport of #41162 to the 11.2.x branch. fix(docs-infra): avoid unnecessarily loading Custom Elements ES5 shim: The custom elements spec is not compatible with ES5 style classes. This ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a69385f7d268ece7ad25b131bbd70f457024811fc79afcae43785a6849b724e2 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 484cf265a1f970d5c7a5e7c37cb677d8010aa12f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width