Hashnode / Hashnode/mern-starter

Add provision for code-splitting as required

Open
#401 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.1k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

``` code-splitting ``` is a great feature that can reduce load timings
> Lazy loading is a great way to optimize your site, and it does that by splitting your code at logical breakpoints, and then loading it once the user has done something that requires, or will require, a new block of code.

It is done by webpack behind the scenes, separating them into multiple files.

So the idea basically is to have a separate command in which the user can specify which component to be imported in the code-splitting way within the routes file. If the user specifies a component that doesn't exist he/she should be prompted with a suitable message.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.