---
title: "Discussion on \"Faster maps with lazy-loaded components\" | Hashnode"
description: "Discussion on \"Faster maps with lazy-loaded components\". Makes maps faster by lazy loading components without changing the main route using Angular Auxiliary router."
url: "https://hashnode.com/posts/faster-maps-with-lazy-loaded-components/60fd372031552277811aeae0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Faster maps with lazy-loaded components](https://pazel.dev/faster-maps-with-lazy-loaded-components?utm_source=hashnode&utm_medium=feed)

Makes maps faster by lazy loading components without changing the main route using Angular Auxiliary router.

Jul 25, 2021 · 11 min read · pazel.dev  
Updated Aug 1, 2021  
Read the article

-   [#angularjs](https://hashnode.com/tag/angularjs)
-   [#maps](https://hashnode.com/tag/maps)
-   [#performance](https://hashnode.com/tag/performance)

## Written by

[Parham](https://hashnode.com/@pazel)

@pazel

  
[View profile](https://hashnode.com/@pazel)

Web is an awesome platform. Let's explore it together.

Web &amp; mobile developer, @Auth0Ambassador. Follow me for content on JavaScript, Angular, React, Ionic &amp; Capacitor, Progressive web apps &amp; UI/UX.

## Responses 1

Markdown supported · ⌘↵ to post

[Abhay](https://hashnode.com/@itselliot)

[Jul 25, 2021](https://hashnode.com/posts/faster-maps-with-lazy-loaded-components/60fd372031552277811aeae0/comment/60fdea7418fbbb77c9468f47)

Hi [Parham](https://hashnode.com/@pazel)

Why there is need to use Auxiliary Routes? when we can do the same things by lazy-load the necessary components as supprted by Angular 9 onwards.

[Parham](https://hashnode.com/@pazel)

[Jul 25, 2021](https://hashnode.com/posts/faster-maps-with-lazy-loaded-components/60fd372031552277811aeae0/comment/60fdea7418fbbb77c9468f47#reply-60fdf0f731552277811b048c)

Hi Elliot, You are right. You can use the Webpack import feature on Angular 9+. I included a link at the end of this blog to the Netanel Basal article which teaches that technique. In my case, lazy loading was one of the requirements. I needed bookmarking through URL as well. This is where the Angular router naturally handles the state for me with the URL being passed. I can also pass extra query params as well.
