DEV Community

loading...

Discussion on: Code Splitting Explained

Collapse
harrisgeo88 profile image
Harris Geo πŸ‘¨πŸ»β€πŸ’»

Interesting approach. Does it make that async request a tad bit slower? But overall i assume it’s faster than loading every at the beginning?

Collapse
laurieontech profile image
Laurie Author

Can you explain which β€œasync request” you’re referring to? If you mean the import it isn’t necessarily slower to have multiple requests in parallel. However there are complexities there.

Collapse
harrisgeo88 profile image
Harris Geo πŸ‘¨πŸ»β€πŸ’»

Sorry i was referring to the async section and just realised there are 2 imports. I mean the one inside the condition. Will give it a try and compare πŸ˜€