• Resolved vadim s. sabinich

    (@vadim-s-sabinich)


    Hello!
    Can you check and resole issue: with Autoptimize plugin PDF embedder not work well. Only if you disable js-optimization on page with PDF-file.

Viewing 3 replies - 1 through 3 (of 3 total)
  • PDFG Support

    (@wppdfsupport)

    Hi @vadim-s-sabinich,

    Autoptimize and other caching plugins can cause issues with the rendering of the viewer by making the required scripts unavailable. To rectify this error, you will need to exclude the plugin URIs for the plugin scripts from the Autoptimize (and any other caching tools): https://wp-pdf.com/kb/using-caching-or-minifying-plugins/

    The plugin scripts are already minified so you will not be losing any efficiency or load speed by excluding them. Be sure to flush any caches after you exclude the scripts so that they can be loaded by the site again and the embed viewer should be displayed correctly once this has been done.`

    Optimizing Matters

    (@optimizingmatters)

    re. Autoptimize; the simplest solution (assuming you don’t have PDF’s on a lot of pages) might be to go to the “edit” screen of pages with PDF’s and in the “Autoptimize this page” metabox disable JS optimization instead of making Autoptimize configuration changes that can affect the entire site.

    hope this helps,
    frank (ao dev)

    I had the same problems.

    I didn’t want to make Autoptimize configuration changes that can affect the entire site and frank’s solution is perfect.

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not work properly with autoptimize’ is closed to new replies.