3D FlipBook - PDF file size, gzip, loading speed

w***7@hotmail.com
2021-03-11
2021-03-12

Hi,

I originally was very happy with this wordpress plugin. I decided to use it after an extensive research, having compared functionality with some other plugins.

But, unfortunately, for some months now, we do get only very big pdfs. The delivering agency says that it would already be the smallest possible PDF size that makes sense to show everything well (which I don´t really believe to be honest).

But from 3D FlipBook side, what could I do to optimize loading times?

The site ist https://www.swarovski-betriebsrat.at/

Best regards and thank you in advance Markus

Replies

a***r@3dflipbook.net
2021-03-11
2021-03-11

Hi, you can always use https://www.ilovepdf.com/compress_pdf to compress your pdf. If PDF has heavy images it will be loading slowly any way.

w***7@hotmail.com
2021-03-11
2021-03-11

Ok, thank you - i already found some online compressor tools before (also ilovepdf). But it´s never more than minus 25 % file size. So a 18 MB file is always too heavy. And as you say: with heavy images included it will always load slowly.

a***r@3dflipbook.net
2021-03-11
2021-03-11

Also disable gzip for PDF in .htaccess file:

<IfModule mod_headers.c>
    <FilesMatch "\.pdf$">
        RewriteRule ^(.*)$ $1 [NS,E=no-gzip:1,E=dont-vary:1]
    </FilesMatch>
</IfModule>

read more: https://stackoverflow.com/questions/9249243/how-to-disable-apache-gzip-compression-for-some-media-files-in-htaccess-file

w***7@hotmail.com
2021-03-11
2021-03-11

I am using this, shouldn´t this be ok then? Or is this something different?

IfModule mod_deflate.c

filesMatch ".(js|css|html|php)$" SetOutputFilter DEFLATE

(sry, I tried to use the correct code, but I have no clue about the markup to mark code)

a***r@3dflipbook.net
2021-03-12
2021-03-12

Your server sends pdfs in gzip now. You need to disable gzip for pdfs, this will let the plugin to fetch only requested pages.

w***7@hotmail.com
2021-03-12
2021-03-12

Ok, I put that command in .htaccess and it works, no more gzip content-encoding for that pdf file. The cover page is shown quite fast (in comparison to before), but all the other pages are still taking very long.

a***r@3dflipbook.net
2021-03-12
2021-03-12

the next step: optimize PDF pages: no heavy objects, images only in the right resolution (instead of a huge image and then scale it to the right size). You noticed that the first page is fast, but if you go 4-5, they are slow, because contains heavy objects, even on local server they renders very slowly. After extreme compression it is a little better.

w***7@hotmail.com
2021-03-12
2021-03-12

it seems, like the single pages of the pdf are requested with status code 206 (partial content). so this is also optimizing flip book page load times, isn´t it?

a***r@3dflipbook.net
2021-03-12
2021-03-12

Yes, that's why you need to disable gzip.

w***7@hotmail.com
2021-03-12
2021-03-12

I see, thx a lot!

w***7@hotmail.com
2021-03-24
2021-03-24

Would the PRO version improve performance?

a***r@3dflipbook.net
2021-03-26
2021-03-26

there are some additional settings that can help a little.

Log In to leave a comment