Home > other >  DOMPDF extremely slow even with tiny mysql tables (90 rows...)
DOMPDF extremely slow even with tiny mysql tables (90 rows...)

Time:11-26

I'm integrating DOMPDF into my PHP website and it works very well. But I realized that the response, for the same table, can decrease terribly even with few rows:

for example a simple mysql table made by 4 columns, 3 INT e 1 short VARCHAR (then very few data), takes several minutes to give me something if the number of rows are 90 (a very very low number)...

it's my first time using dompdf, do you know if I can tune something to improve? thanks!

CodePudding user response:

  • Get the CSS definitions for the specific classes
  • inline them in a style tag in the view
  • remove bootstrap altogether from the view

I think this will make the load time normal

  • Related