Title: myithubau's Replies | WordPress.org

---

# myithubau

  [  ](https://wordpress.org/support/users/myithubau/)

 *   [Profile](https://wordpress.org/support/users/myithubau/)
 *   [Topics Started](https://wordpress.org/support/users/myithubau/topics/)
 *   [Replies Created](https://wordpress.org/support/users/myithubau/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/myithubau/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/myithubau/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/myithubau/engagements/)
 *   [Favorites](https://wordpress.org/support/users/myithubau/favorites/)

 Search replies:

## Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Weight Based Shipping for WooCommerce] Object Cache on our site](https://wordpress.org/support/topic/object-cache-on-our-site/)
 *  Thread Starter [myithubau](https://wordpress.org/support/users/myithubau/)
 * (@myithubau)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/object-cache-on-our-site/#post-18661946)
 * No update still?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GTM Kit - Google Tag Manager & GA4 integration] Error in Checkout Page](https://wordpress.org/support/topic/error-in-checkout-page-11/)
 *  Thread Starter [myithubau](https://wordpress.org/support/users/myithubau/)
 * (@myithubau)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-in-checkout-page-11/#post-18032856)
 * It is related to GTM kit.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GTM Kit - Google Tag Manager & GA4 integration] Google Tag Manager – Reduce JavaScript execution time](https://wordpress.org/support/topic/google-tag-manager-reduce-javascript-execution-time-2/)
 *  Thread Starter [myithubau](https://wordpress.org/support/users/myithubau/)
 * (@myithubau)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/google-tag-manager-reduce-javascript-execution-time-2/#post-17975810)
 * Yes thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GTM Kit - Google Tag Manager & GA4 integration] Google Tag Manager – Reduce JavaScript execution time](https://wordpress.org/support/topic/google-tag-manager-reduce-javascript-execution-time-2/)
 *  Thread Starter [myithubau](https://wordpress.org/support/users/myithubau/)
 * (@myithubau)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/google-tag-manager-reduce-javascript-execution-time-2/#post-17975781)
 * After clearing cache its looking lot better.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GTM Kit - Google Tag Manager & GA4 integration] Google Tag Manager – Reduce JavaScript execution time](https://wordpress.org/support/topic/google-tag-manager-reduce-javascript-execution-time-2/)
 *  Thread Starter [myithubau](https://wordpress.org/support/users/myithubau/)
 * (@myithubau)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/google-tag-manager-reduce-javascript-execution-time-2/#post-17975735)
 * Hi, I have added this code to functions.php but there has been no changes.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GTM Kit - Google Tag Manager & GA4 integration] Google Tag Manager – Reduce JavaScript execution time](https://wordpress.org/support/topic/google-tag-manager-reduce-javascript-execution-time-2/)
 *  Thread Starter [myithubau](https://wordpress.org/support/users/myithubau/)
 * (@myithubau)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/google-tag-manager-reduce-javascript-execution-time-2/#post-17975636)
 * and where exactly do i need to add this code?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GTM Kit - Google Tag Manager & GA4 integration] Google Tag Manager – Reduce JavaScript execution time](https://wordpress.org/support/topic/google-tag-manager-reduce-javascript-execution-time-2/)
 *  Thread Starter [myithubau](https://wordpress.org/support/users/myithubau/)
 * (@myithubau)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/google-tag-manager-reduce-javascript-execution-time-2/#post-17975611)
 * Do you mean in Child theme ?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GTM Kit - Google Tag Manager & GA4 integration] Google Tag Manager – Reduce JavaScript execution time](https://wordpress.org/support/topic/google-tag-manager-reduce-javascript-execution-time/)
 *  Thread Starter [myithubau](https://wordpress.org/support/users/myithubau/)
 * (@myithubau)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/google-tag-manager-reduce-javascript-execution-time/#post-17970275)
 * Hi,
 * It has been 4 days since I am waiting for your response.
 * he LCP score is indeed mainly affected by the loading of JavaScript files, as
   you have pointed out earlier in the ticket. On your website that JavaScript code
   comes primarily from the Google Tag Manager implementation. You have a plugin
   named gtm-kit with which you load various analytics JavaScript code and about
   85% of the JavaScript loading time is related to code brought through the Google
   Tag Manager:
 * [https://www.myithub.com.au/Screenshot%202024-08-21%20at%2018.44.24.png](https://www.myithub.com.au/Screenshot%202024-08-21%20at%2018.44.24.png)
 * For the sake of testing purposes, I disabled temporarily the gtm-kit plugin and
   retested the mobile performance with the Google PageSpeed Insights too. As you
   can see from the results below, the mobile score was instantly increased to 73:
 * [https://pagespeed.web.dev/analysis/https-www-myithub-com-au/qk9m8azo1y?form_factor=mobile](https://pagespeed.web.dev/analysis/https-www-myithub-com-au/qk9m8azo1y?form_factor=mobile)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GTM Kit - Google Tag Manager & GA4 integration] Google Tag Manager – Reduce JavaScript execution time](https://wordpress.org/support/topic/google-tag-manager-reduce-javascript-execution-time/)
 *  Thread Starter [myithubau](https://wordpress.org/support/users/myithubau/)
 * (@myithubau)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/google-tag-manager-reduce-javascript-execution-time/#post-17959790)
 * hi,
   Its not fixed still.The issue with your website are these scripts:
 * Full-size image here: [https://i.imgur.com/Dq57qZ0.png](https://i.imgur.com/Dq57qZ0.png)
 * Especially the GTM ones. And those scripts are being triggered by these inline
   scripts, which are being excluded from Delay JavaScript execution by adding the
   attribute data-nowprocket:
 * Full-size image here: [https://i.imgur.com/whXoLKc.png](https://i.imgur.com/whXoLKc.png)
 * I will try to explain myself as clearly as possible:
 * For WP Rocket to be able to delay the execution of a script, that script must
   be present in the HTML of the page, only then WP Rocket can add the RocketLazyloadscript
   attribute to delay it, but if that script is not present in the HTML but is dynamically
   triggered (as in this case) by a script that was itself excluded from the feature,
   then WP Rocket will not be able to delay it and therefore that script will end
   up affecting your score if it consumes too much execution time.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GTM Kit - Google Tag Manager & GA4 integration] Google Tag Manager – Reduce JavaScript execution time](https://wordpress.org/support/topic/google-tag-manager-reduce-javascript-execution-time/)
 *  Thread Starter [myithubau](https://wordpress.org/support/users/myithubau/)
 * (@myithubau)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/google-tag-manager-reduce-javascript-execution-time/#post-17954231)
 * Hi, I have updated your plugin and Wp rocket also, the issue seems to have fixed.
   Can you please recheck ?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GTM Kit - Google Tag Manager & GA4 integration] Google Tag Manager – Reduce JavaScript execution time](https://wordpress.org/support/topic/google-tag-manager-reduce-javascript-execution-time/)
 *  Thread Starter [myithubau](https://wordpress.org/support/users/myithubau/)
 * (@myithubau)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/google-tag-manager-reduce-javascript-execution-time/#post-17953813)
 * hi Torben,
 * Please check response from WP Rocket
 * I’ve checked your website and seems to be there are some GTMkit scripts that 
   are not being delayed, take a look:
 * The scripts on the red squares are not delayed:
 * ![703db774a854fc00b67e1f249c4bfa13.png](https://i0.wp.com/d33v4339jhl8k0.cloudfront.
   net/inline/18928/bfb3fb778fb5e52420f4b838862d1313e8cd2588/651500f778667739ca3403ad426d9aea5c67a518/
   703db774a854fc00b67e1f249c4bfa13.png?ssl=1)
 * Full-size image here: [https://i.imgur.com/xI4T0Pd.png](https://i.imgur.com/xI4T0Pd.png)
 * Those scripts (which in turn are instantiating GTM scripts) are being excluded
   from Delay JavaScript execution because the `data-nowprocket `attribute has been
   added to them:
 * ![ef6fd3f1fcbff1a2f3997b90a32b49bb.png](https://i0.wp.com/d33v4339jhl8k0.cloudfront.
   net/inline/18928/8fd00ea7285833650bc126eeff1ed16119e2adaa/a008da22f3b042e78a2d88c58b5d0621efbc5327/
   ef6fd3f1fcbff1a2f3997b90a32b49bb.png?ssl=1)
 * Full-size image here: [https://i.imgur.com/iiJlSJy.png](https://i.imgur.com/iiJlSJy.png)
 * Further information in [this article](https://docs.wp-rocket.me/article/1655-troubleshoot-delay-javascript-execution-issues#attribute-exclusions).
 * And this attribute it’s being added by GTMKit, in this function:
 * ![5b072ddefcac3b2ce0156ef8098a9fa4.png](https://i0.wp.com/d33v4339jhl8k0.cloudfront.
   net/inline/18928/c4b4a9f219244d1b0d5aa88ec2e40c2d73c7b885/aa360e3cbf1e148d111c05c13c27d6e8942f2f36/
   5b072ddefcac3b2ce0156ef8098a9fa4.png?ssl=1)
 * Full-size image here: [https://i.imgur.com/QxaAmkw.png](https://i.imgur.com/QxaAmkw.png)
 * [Here you can see the complete GTMKit code](https://plugins.trac.wordpress.org/browser/gtm-kit/trunk/src/Frontend/Frontend.php#L261).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GTM Kit - Google Tag Manager & GA4 integration] Google Tag Manager – Reduce JavaScript execution time](https://wordpress.org/support/topic/google-tag-manager-reduce-javascript-execution-time/)
 *  Thread Starter [myithubau](https://wordpress.org/support/users/myithubau/)
 * (@myithubau)
 * [2 years ago](https://wordpress.org/support/topic/google-tag-manager-reduce-javascript-execution-time/#post-17949883)
 * [https://workdrive.zohopublic.com.au/external/c3aa46ea6ae403ee7826210cfd8756a096198acccfb821db5f52349aa7f289ee](https://workdrive.zohopublic.com.au/external/c3aa46ea6ae403ee7826210cfd8756a096198acccfb821db5f52349aa7f289ee)
 *     ```wp-block-code
       that is what we are not able to understand since its delaying to load our siteGoogle Tag Manager tag-manager 1,688 ms1,524 ms109 ms
       ```
   
    -  This reply was modified 2 years ago by [myithubau](https://wordpress.org/support/users/myithubau/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GTM Kit - Google Tag Manager & GA4 integration] Google Tag Manager – Reduce JavaScript execution time](https://wordpress.org/support/topic/google-tag-manager-reduce-javascript-execution-time/)
 *  Thread Starter [myithubau](https://wordpress.org/support/users/myithubau/)
 * (@myithubau)
 * [2 years ago](https://wordpress.org/support/topic/google-tag-manager-reduce-javascript-execution-time/#post-17949779)
 * I have read the message and its already configured as per your recommendations–
   
   load_delayed_js event is ON
 *  Delay JavaScript execution in ON in WP rocket.
   What else are you proposing to
   change?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GTM Kit - Google Tag Manager & GA4 integration] Google Tag Manager – Reduce JavaScript execution time](https://wordpress.org/support/topic/google-tag-manager-reduce-javascript-execution-time/)
 *  Thread Starter [myithubau](https://wordpress.org/support/users/myithubau/)
 * (@myithubau)
 * [2 years ago](https://wordpress.org/support/topic/google-tag-manager-reduce-javascript-execution-time/#post-17949283)
 * hi,
 * I have just sent, Since we are on Woocommerce, Shall we need to Activate the 
   WooCommerce integration also or its not mandatory.
 * Regards,

Viewing 14 replies - 1 through 14 (of 14 total)