Optimize speed for domPdf?« Wróć do listy pytań

Optimize speed for domPdf?
Wysłane przez mrmucha
Zadane przez 30/07/2015 20:23
0

A: 1. Do not use any TABLE / TR /TD tag, replace it with SPAN or DIV and set css for it (http://www.w3schools.com/html/html_layout.asp)

A: 2. Replace all withe spaces from HTML, /r/n replace with nothing, replace double wihitespace with nothing.

A: 3. I you have to use table, avoid colspan and rowspan, they give extrmely lag to whole documment. Avoid % sizes, make them static like width:100px, not width:100%

A: Keep PHP fresh, upgrade it

A: and…fastest option in whole world is to USE wkhtmltopdf !

Wysłane przez mrmucha
Odpowiedziane 30/07/2015 20:29