Ideas

Give us your best ideas!

Accelerator and frontend optimization

  • Make headless the default (see https://ideas.litium.com/ideas/L-I-64)

  • Use a static site generator (Next.js is the most popular)

  • Don't use global CSS, as it

    • bloats code size, which slows page load and lowers conversions

    • is hard to analyze (both for tooling and devs) and refactor, doesn't scale

    • should probably use styled-jsx instead, this is a mature, complete and popular alternative

  • Ship with Prettier.js for autoformatting of code (there are formatting inconsistencies today)

  • Include a utility package.json script for updating browserslist

  • Update packages

  • Use React Hooks

  • Perhaps extract critical CSS during build via webpack plugin


This is a start... :P

  • Martin Grönlund
  • Mar 17 2021
  • Shipped
  • Attach files
  • Admin
    Ludvig Block commented
    January 31, 2023 18:12

    Hi,

    Today we released the first beta of the Storefront API as part of Litium 8.8, and the React accelerator as a SPA. Read all the details in the links below!

    Read more about the React accelerator

    Read more about the Storefront API

  • Admin
    Ludvig Block commented
    December 16, 2022 08:56

    Hi Martin!

    Updated this idea to Planned since we have started implementing the new headless architecture for the Litium Accelerator. We are planning to use React, NextJS, Prettier, scoped/component based CSS, Tailwind CSS, typescript, ESLint, Jest and Playwright.

    More info to come in Q1 2023 when a first beta should be released.