Skip Navigation

[Resolved] Optimization – Minifying Toolset inline javascript breaks the site

This thread is resolved. Here is a description of the problem and solution.

Problem: I would like to minify inline JavaScript to optimize site performance.

Solution: We recommend not minifying or otherwise altering plugin files.

This support ticket is created 6 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by AlexV7701 6 years, 10 months ago.

Assisted by: Christian Cox.

Author
Posts
#618165

Dear support team,

We have been trying Autoptimize and W3TC to optimize our website.
When we enable minifying inline javascript, this breaks the website. Parts of Toolset type front pages are not displayed and form notification emails not delivered.

I searched the forums but did not find anything similar. Is this a known issue and is there a workaround (apart from excluding those inline javascript files from the minifiy process)?

Many thanks,
Alex

#618414

Hi, it's known, and we recommend you do not attempt to minify Toolset's inline JavaScript or otherwise alter any plugin files. Inline scripts inserted by Toolset aren't designed to support minification, so you'll experience problems if you try to implement that optimization feature.

#618455

Hi Christian,

Thanks a lot for the confirmation, all clear now!

Best wishes,
Alex