Title: Question re: AO &amp; Async JavaScript
Last modified: August 16, 2022

---

# Question re: AO & Async JavaScript

 *  Resolved [willjames](https://wordpress.org/support/users/willjames/)
 * (@willjames)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/question-re-ao-async-javascript/)
 * Hi – I am deferring js in AO and I think it is working OK. I am getting called
   out on lighthouse for ‘Reduce unused JavaScript and defer loading scripts’. This
   contains the gtm and gtag js (two files).
 * Would Async Javascript plugin help here to defer these? If so, is there a potential
   impact on the reporting in GA (especially for bounces etc.?) if the user does
   not interact with the page then the visit will not be recorded?
    Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fquestion-re-ao-async-javascript%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/question-re-ao-async-javascript/#post-15921629)
 * AsyncJS (or the async field on settings -> Autoptimize -> extra) could probably
   help there, but I can’t say for sure if this will or will not impact GA reporting
   I’m afraid ..

Viewing 1 replies (of 1 total)

The topic ‘Question re: AO & Async JavaScript’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/question-re-ao-async-javascript/#post-15921629)
 * Status: resolved