Is removing Bootstrap from a five page site worth the effort

Back to list2024-05-25
You

Is removing Bootstrap from a five page site worth the effort?

ChatGPT

Usually yes at that size. Grid and flexbox cover the layout, custom properties cover the theming, and you stop shipping 200 KB to style five pages. The part people underestimate is the component behaviour, not the styles: modals and dropdowns have to be rewritten.

Tool steps: 3 (reasoning summary, call to python, execution output)
reasoning summary
Checked the query plan, then compared index options.
call to python
rows = run_sql("EXPLAIN (ANALYZE) SELECT ...")
print(rows[:3])
execution output
Seq Scan on events  (cost=0.00..812431.00 rows=41203122 width=16)
  Rows Removed by Filter: 38996878
Planning Time: 0.214 ms
Execution Time: 11842.663 ms
You

Switching to dark theme flashes white on load. How do people avoid it?

ChatGPT

Set the theme before first paint with a tiny inline script in the head that reads the stored preference and puts an attribute on the root element. Anything loaded as an external file arrives too late, which is exactly what the flash is showing you.

You

Does this still hold if I am working alone?

ChatGPT

It gets easier, not harder. A fair share of the difficulty is coordination, and that disappears. What remains is remembering your own decisions, which is what writing them down is for.