programming-idioms icon indicating copy to clipboard operation
programming-idioms copied to clipboard

Consider vanilla JS

Open Deleplace opened this issue 7 years ago • 3 comments

Frameworks tend to incur a difficult-to-decrease overhead in file size, and in rendering time.

Try to not use any

Deleplace avatar Aug 09 '18 11:08 Deleplace

Note that the JS is impacted by the choice of server-side rendering vs client-side rendering.

Deleplace avatar Sep 16 '18 09:09 Deleplace

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

Deleplace avatar Sep 16 '18 09:09 Deleplace

Optionally, consider sever-side rendering of several implementations for the same language, when they exist.

Deleplace avatar Sep 16 '18 09:09 Deleplace