I learned a ton working on it and would love to talk about it if anyone has any questions!
Application Link: https://trends.now.sh
Source code on Github: https://github.com/hanford/trends
[1]: https://developers.google.com/web/progressive-web-apps/
1–10 of 34 posts
I learned a ton working on it and would love to talk about it if anyone has any questions!
Application Link: https://trends.now.sh
Source code on Github: https://github.com/hanford/trends
[1]: https://developers.google.com/web/progressive-web-apps/
I notice that it lets you sort by language. Does the underlying data let you get at trends in relative language popularity?
I'm simply getting this data from Github and then caching the rendered result on the cloudflare CDN layer, the rendered page data in memory in node, and additionally the GraphQL query in memory
I'm super intrigued by the client-side/server-side rendering question. When I discovered single page apps I thought I'd seen the future - servers were just things that hosted web services, and all the presentation was a bundled, minimized blob served up by a static CDN. So simple, so clean, such clear separation of concerns. But now I'm seeing reports of faster first page rendering with React server than React client…
The issues that really large JS bundles can cause are really hard to solve (bloated sizes, but also parse time of the bundles). There are a lot of tools to help mitigate those like code splitting, but it's really challenging once things get big.
When I wanted to achieve a 100 in my chrome performance audit, I simply couldn't include React.
I think React adds a tremendous amount of value from the ecosystem, the constant improvements and updates .. and the mindset that developers have when building out react applications. (component model, etc)
I think for any really large application with lots of client side interactions or async data / data management, my solution would become unwieldy.
But for smaller applications that maybe don't need to do as much, (in the above case we're simply registering some event listeners to submit a form) or landing pages or the like .. the above solution would work very well.
Never used next, looks interesting. So with this setup, the browser doesn't do any work, all pages are loaded as if they were static, and rendered server side?
The way that is achieved is pretty neat, Next.js has a [1] component that you can extend. This Document is essentially your application shell that is used when server side rendering.
Here is the trends Document component[2] where you can see I'm simply omitting `NextScripts` which ends up being the frontend bundle with react + application code
[1] https://github.com/zeit/next.js#custom-document
[2] https://github.com/hanford/trends/blob/master/pages/_documen...
There's something weird going on with the styling of the dropdowns, though: https://i.imgur.com/WQ3m52X.gif
I'm on Windows 10 & Chrome
The page load speed is seriously impressive, congrats! There's something weird going on with the styling of the dropdowns, though: https://i.imgur.com/WQ3m52X.gif I'm on Windows 10 & Chrome
I happened to see this before I clicked the link, and I have to agree the page load speed lives up to your hype!
I'm not experiencing your issue on OS X, Chrome.