mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
2c8579f1b4
Previously the built-in image loaders for the optimized image directive were tightly coupled to the preconnect checks infrastructure. This was creating a problem when developers were trying to provide a loader on a component level (or, more generally, deeper in the DI hierarchy): - PreconnectLinkChecker is the application-level service, provided in root; - it makes sense to provide loaders in different parts of the DI hierarchy; This refactoring removes the PreconnectLinkChecker configuration from the loaders infrastructure and makes it application-wide config. The PRECONNECT_CHECK_BLOCKLIST is also a simple provider (it was a multi-provider previously) which should make the overall configuration easier. PR Close #47565