Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Huge size when using the package? #214

Closed
melvin2016 opened this issue Oct 17, 2020 · 1 comment
Closed

Huge size when using the package? #214

melvin2016 opened this issue Oct 17, 2020 · 1 comment

Comments

@melvin2016
Copy link

melvin2016 commented Oct 17, 2020

I have a component called ImageLoaderUtil which I'm using to convert raw images to webp and also place lqip placeholders. But I get huge page sizes when Next.js builds the site.

ImageLoaderUtil.jsx Component

Screenshot 2020-10-17 at 3 19 32 PM

Size of the Page with webp and lqip loaders when Next.js builds the site.

Screenshot 2020-10-17 at 3 20 01 PM

Size of the Page when I removed webp and lqip loaders

Screenshot 2020-10-17 at 3 21 38 PM

Can someone suggest to me a better solution? 🙂

@z0lo13
Copy link

z0lo13 commented Nov 15, 2020

try loading images dynamically without ssr it will remove images from build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants