Home / Companies / Gatsby / Blog / July 2021

July 2021 Summaries

3 posts from Gatsby

Filter
Month: Year:
Post Summaries Back to Blog
Gatsby's default code-splitting mechanism often suffices for most development needs by intelligently dividing JavaScript bundles to optimize user experience, but issues can arise when using flexible layout components with heavy dependencies in a headless CMS. These components can inadvertently inflate bundle sizes because Gatsby's default configuration splits bundles by page-level, meaning all imports end up in the bundle regardless of actual use. To address this, the use of loadable-components is recommended, as it allows for fine-grained control over code-splitting, ensuring that only necessary components are included in the bundle, thus optimizing performance. This approach is particularly beneficial when components such as carousels are conditionally rendered, as it prevents unnecessary components from being loaded, enhancing page load times and maintaining server-side rendering (SSR). The implementation involves configuring loadable-components with a specific plugin to adjust the Webpack configuration for Gatsby, ensuring SSR is maintained, which is crucial to avoid any performance degradation that could outweigh the benefits of reduced bundle sizes.
Jul 23, 2021 1,021 words in the original blog post.
Website teams have a diverse array of analytics tools at their disposal to gain insights into user behavior, ranging from basic analytics like Google Analytics, which focuses on standard metrics such as page views and bounce rates, to more specialized tools that offer deeper insights. Basic analytics often work with tag managers like Google Tag Manager to streamline tracking. Recently, there has been a rise in specialized services, including Customer Data Platforms (CDPs) like Segment and Rudderstack, which centralize data and improve page performance by replacing multiple trackers with a single one; product analytics tools such as Heap, Amplitude, and Mixpanel, which provide detailed user segmentation and advanced analyses; and session recording tools like FullStory and Hotjar, which offer qualitative data through visualizations like heatmaps and scrollmaps. These specialized tools cater to different teams, such as demand generation, design, UX, and support, aiming to enhance user experience and optimize conversion.
Jul 08, 2021 475 words in the original blog post.
Paul Scanlon's blog post details the creation of a unique marketing campaign using Gatsby and Shopify, featuring a giveaway of 500 limited edition water bottles. The campaign showcases Gatsby's capabilities as a headless solution by integrating Three.js for a dynamic, synthwave-inspired animation that reflects real-time Shopify inventory levels. This project uses the upgraded gatsby-source-shopify plugin with Shopify's Admin API to effectively handle data sourcing, avoiding the rate limits of the Storefront API. The campaign involves intricate functionalities like dynamic discount code generation and "tinker prevention" to ensure fair distribution of bottles. Additionally, the site utilizes Gatsby Functions to manage checkout processes and includes a feature to map winners' locations using Three.js. Despite challenges with Shopify’s API and marketing requirements, the project exemplifies how Gatsby can extend beyond static site generation to create interactive, JavaScript-rich applications.
Jul 07, 2021 2,718 words in the original blog post.