programming-idioms
programming-idioms copied to clipboard
Consider vanilla JS
Frameworks tend to incur a difficult-to-decrease overhead in file size, and in rendering time.
Try to not use any
Note that the JS is impacted by the choice of server-side rendering vs client-side rendering.
Possible strategy to balance high-performance, SEO, lightness : For the rendering of an "idiom detail" page
- Render server-side minimalistic HTML having title, meta, idiom statement, selected implementation
- Inline minimalistic CSS for layout and primary colors
- Consider inlining minimalistic JS for interactivity (only if really useful)
- Lazy load and lazy render everything else
Optionally, consider sever-side rendering of several implementations for the same language, when they exist.