TEC Pro exclusions for W3TC minification of JS/CSS

Home Forums Calendar Products Events Calendar PRO TEC Pro exclusions for W3TC minification of JS/CSS

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1158942
    Carol
    Participant

    I am attempting to utilize W3TC minification for JS and CSS, but disabled it per this KB article – https://theeventscalendar.com/support/forums/topic/w3-total-cache-breaking-calendar-view/. Disabling minification reduced performance of pages on my site.

    Is there a more optimum way to enable W3TC minification, possibly with certain exclusions for TEC?

    Matt Q

    #1159079
    Geoff
    Member

    Hi Zena,

    Good question! You’re spot on in that the conflict is that W3TC will attempt to re-minify the styles and scripts that The Events Calendar have already minified.

    The best workaround for this that I am aware of is to configure the W3TC settings to:

    • General > Minify, select “Manual” instead of “Auto”
    • Minify > HTML & XML, uncheck the “Inline JS minification” option

    I think that might have the effect of taking place across the entire site rather than just acting as an exclusion for The Events Calendar. If that’s the case, then I think that might be a good question for the W3TC community to see if the plugin allows exclusions.

    Does this make sense and will it work for you? Please let me know.

    Cheers!
    Geoff

    #1159438
    Carol
    Participant

    That seemed to fix TEC events not displaying correctly – thanks for the suggestion. I’ll look into the W3TC community for a solution that may allow me to exclude TEC.

    Matt Q.

    #1159511
    Geoff
    Member

    My pleasure! Thanks a ton and please do feel free to follow-up if you are able to find a method for excluding specific styles and scripts — I’m sure others would find that super useful as well.

    Cheers and have a great weekend!
    Geoff

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘TEC Pro exclusions for W3TC minification of JS/CSS’ is closed to new replies.