Skip to content
Brian Sweeney edited this page Nov 9, 2021 · 2 revisions

Performance suggestions for HTML source

Layout

  • Minimize use of tables
  • Keep your document as small as possible -- use fewer tags -- break very large documents into separate renders
  • Disable the HTML5 parser if the HTML document is validly structured

Styling

  • Exclude unused styles

Images

  • Use JPEG images to avoid extra parsing required for transparency and or conversion -- Except for background images, which always go through extra processing
  • Use the IMagick/GMagick extensions

Metrics

todo