Manish-Kothary / CBDbene

1 stars 0 forks source link

Performance #70

Open Manish-Kothary opened 4 years ago

Manish-Kothary commented 4 years ago

a) https://gtmetrix.com/reports/cbdbene.com/LzPi55uc

many undefined api calls - causing delays

b) checked network request of the site https://prnt.sc/pb3kpp

c) see the console https://prnt.sc/pb3kt0

d) console printout must be disabled. e) Use aggregation for queries... mongo db

f) There are 3 static components without a far-future expiration date.

MAKE THIS A PRODUCTION BUILD ....please so we can test properly

ways/changes to improve the speed of site::

Anas-MI commented 4 years ago
  1. The reason why i was against of uploading the images for bundles was for this reason. It has made the performance of our site go low as these images are not compressed. So please fix that. I have showed you the score of 94% with the optimized image.

All the errors regarding the scaling can be ignored coz that's a part of our functionality. We scale down the images to display them without losing on its quality.

  1. Will see if this is an issue or not.

  2. There is no cors issue. The error is showing due to some other reason.

  3. I will clear out the console once we finalize it for everything. We use the console to debug issues.

  4. Use aggregation?? what do you mean??

  5. That's not an issue that you should be worried off.

This is a production build.

Manish-Kothary commented 4 years ago
  1. https://www.tutorialspoint.com/mongodb/mongodb_aggregation.htm
Manish-Kothary commented 4 years ago
  1. We should load only the basic page when user first comes to the site (and then load images asynchronously ...so use lazy loading for all images).

Initial speed is key. https://www.sitepoint.com/five-techniques-lazy-load-images-website-performance/

Anas-MI commented 4 years ago
  1. https://www.tutorialspoint.com/mongodb/mongodb_aggregation.htm
    • This was a reply to your question "Use aggregation?? what do you mean??"

How else would we fetch the data back??

This is how its done. This is how its done everywhere.

Manish-Kothary commented 4 years ago

I have discussed this issue. 2 things we need to do:

  1. We need to use Webpack tool - it needs to be configured properly for making css requests and then js requests
  2. Use lazy loading of image

we can reduce load speed to 2-3 seconds.

Anas-MI commented 4 years ago

Did some changes today.