user1606761
user1606761

Reputation: 115

Spartacus - Is applying LAZY LOADING OF CMS COMPONENTS is correct when having many custom CMS components?

My Storefront application have more than 50 custom CMS components.

SSR build creates separate JS files for each CMS component when applying LAZY LOADING OF CMS COMPONENTS approach.

Does it won't create any performance impact?

Upvotes: 0

Views: 84

Answers (1)

i042416
i042416

Reputation: 366

Generally speaking, using lazy loading of modules is recommended over lazy loading of components.

Historically, components lazy loading mechanism was created at a time where lazy loading of modules was not yet available. But now lazy loading of modules is the preferred way to go.

Upvotes: 2

Related Questions