• Resolved iansimpao

    (@iansimpao)


    I tried using this plugin and am able to use HTML and CSS optimization without issues. However, I have a certain script that doesn’t work when I do JavaScript optimization (it disappears completely from the source code of the site when JavaScript optimization is turned on).

    After tinkering with the settings, I found out that if I use the options for JavaScript in <head> and try-catch wrapping, that broken script works. From what I understand in the plugin settings, it is better to include JavaScript at the bottom of HTML for performance reasons. If I turn on JavaScript optimization with these settings, would I still be getting the performance benefits, or JavaScript in <head> is negating that? I tried doing tests and with JavaScript optimization it’s a bit faster, but I want to double confirm.

    My site is: http://brideandbreakfast.ph/ and the Autoptimize plugin is active with HTML, CSS, and JavaScript optimization on (with the settings above).

    Thanks!

    https://wordpress.org/plugins/autoptimize/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Performance benefits with JavaScript in and try-catch wrapping’ is closed to new replies.