fossology / FOSSologyUI

Repository to hold the new UI framework for FOSSology built with React
https://fossology.github.io/FOSSologyUI/
GNU General Public License v2.0
49 stars 88 forks source link

Use lazy loading components #160

Closed Aman-Codes closed 2 years ago

Aman-Codes commented 3 years ago

Description

Currently all the components are loaded during initial page load which increases the initial load time. We could use lazy loading to optimize the load time.

Steps followed and expected result

Update imports to use lazy loading. Example change

import Home from "./Home";

to

const Home = React.lazy(() => import("./Home"));
viogustian commented 3 years ago

I can work with this issue pls assign me

viogustian commented 3 years ago

do i just have to lazy loaded all in the components folder?

Aman-Codes commented 3 years ago

@viogustian I believe just updating all the page imports inside the Routes file would work.

viogustian commented 3 years ago

Ok

sayantan1413 commented 3 years ago

@Aman-Codes Is this issue still open then I would like to contribute here.

TC5022 commented 2 years ago

I would like to work on this issue if it's still open @Aman-Codes

soham4abc commented 2 years ago

I Have started working on this pls assign me the issue if possible.