• Resolved s.dudchenko

    (@sdudchenko)


    Hello friends very grateful to the developers for a great plugin but I had serious difficulties because of the plugin during site optimization. these difficulties lie in the fact that Google swears on resource compression using gzip-compression functions.The error looks like This:

    https://goo.gl/fJtn73

    list of scripts that can not be compressed:

    all-in-one-event-calendar/public/js/scripts/calendar/agenta_view.js?ver=2.5.32
    all-in-one-event-calendar/public/js/scripts/calendar/print.js?ver=2.5.32
    all-in-one-event-calendar/public/js/scripts/event.js?ver=2.5.32
    all-in-one-event-calendar/public/js/scripts/event/gmaps_helper.js?ver=2.5.32
    all-in-one-event-calendar/public/js/scripts/calendar/agenda_view.js?ver=2.5.32
    all-in-one-event-calendar/public/js/libs/select2_multiselect_helper.js?ver=2.5.32
    all-in-one-event-calendar/public/js/libs/frontend_utils.js?ver=2.5.32
    all-in-one-event-calendar/public/js/external_libs/bootstrap/tab.js?ver=2.5.32
    all-in-one-event-calendar/public/js/external_libs/jquery.scrollTo.js?ver=2.5.32

    I see that the problem is that the scripts specified in the screenshot are no more than a byte in size, because of this they can not be combined into a single file by the caching plugin. How can I cancel the output of these scripts plugin all-in-one calendar events and add their output yourself through the function.in PHP (of course pre-combining all the scripts in a single file)?

Viewing 1 replies (of 1 total)
  • Thread Starter s.dudchenko

    (@sdudchenko)

    Thanks, I’ve sorted it out. Solution: In the file .htaccess you must add these lines:

    <IfModule mod_deflate.c>
    AddType x-font/woff .woff
    AddType x-font/ttf .ttf
    AddOutputFilterByType DEFLATE image/svg+xml
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE text/javascript
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE application/x-font-ttf
    AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
    AddOutputFilterByType DEFLATE font/opentype font/ttf font/eot font/otf
    AddOutputFilterByType DEFLATE application/json
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
    AddOutputFilterByType DEFLATE application/x-font
    AddOutputFilterByType DEFLATE application/x-font-opentype
    AddOutputFilterByType DEFLATE application/x-font-otf
    AddOutputFilterByType DEFLATE application/x-font-truetype
    AddOutputFilterByType DEFLATE application/x-font-ttf
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE font/otf
    AddOutputFilterByType DEFLATE font/ttf
    AddOutputFilterByType DEFLATE image/svg+xml
    AddOutputFilterByType DEFLATE image/x-icon
    AddOutputFilterByType DEFLATE text/plain
    </IfModule>

Viewing 1 replies (of 1 total)
  • The topic ‘How to compress JS for PageSpeed Insights in the ALl-in-one Event Calendar plugi’ is closed to new replies.