News for hackers. Stuff that matters.
Re:Simple Performance Optimizations on Grofers.com with Reac... by vishesh92 on Tuesday January 17, 2017 @07:39AM (#13416938)
I think brotli can be used. Global usage is 55% according to http://caniuse.com/#search=brotli
Re:Simple Performance Optimizations on Grofers.com with Reac... by vaidik on Tuesday January 17, 2017 @07:47AM (#13416988)
When we started out, we were short on time and thought of using either whichever covers most of our target user base. Zopfli works everywhere whereas Brotli is not supported everywhere. Also, Nginx does not support Brotli out of the box and had to be compiled. Since there were some complexities as well, we went ahead with Zopfli only.

Now that we have more time, we have the luxury to setup infrastructure for serving both Zopfli and Brotli. Perhaps one of the next steps for us to make our website even faster.

Re:Simple Performance Optimizations on Grofers.com with Reac... by shsethi on Tuesday January 17, 2017 @12:48PM (#13419489)
1)Where do you make your api calls in componentDidMount or componentWillMount ?

2)Are you using Redux to manage all of your state? Is it getting too verbose?

Re:Simple Performance Optimizations on Grofers.com with Reac... by veetesh on Tuesday January 17, 2017 @11:07PM (#13423881)
componentDidMount is the right place to call for an API. if you are interested in server-side rendering would recommend this post https://blog.tableflip.io/server-side-rendering-with-react-a...

yes we use redux and strongly follows its design pattern.

Re:Simple Performance Optimizations on Grofers.com with Reac... by shsethi on Tuesday January 17, 2017 @11:27PM (#13423964)
Thanks for that link.

Have you guys looked into MobX?

Re:Simple Performance Optimizations on Grofers.com with Reac... by parmanu on Tuesday January 17, 2017 @03:13PM (#13420743)
Might want to make use of CSS sprites.