Title: Remove unused JavaScript
Last modified: November 16, 2020

---

# Remove unused JavaScript

 *  Resolved [Sergey](https://wordpress.org/support/users/kuuuzya/)
 * (@kuuuzya)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/remove-unused-javascript-4/)
 * Hello, how could I delete unused JS from AMP?
    I got an error in Google PageSpeed:
 * Remove unused JavaScript to reduce bytes consumed by network activity.
    /v0.js(
   cdn.ampproject.org) …src/service/action-impl.js …src/service/history-impl.js …
   src/service/url-replacements-impl.js …src/service/viewport/viewport-impl.js …
   src/service/resources-impl.js
 * [https://developers.google.com/speed/pagespeed/insights/?hl=En&url=https%3A%2F%2Fitzine.ru%2F](https://developers.google.com/speed/pagespeed/insights/?hl=En&url=https%3A%2F%2Fitzine.ru%2F)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fremove-unused-javascript-4%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/remove-unused-javascript-4/#post-13671187)
 * We inspected your site on PageSpeed insight tool and it has good test results
   [https://prnt.sc/vkikym](https://prnt.sc/vkikym). To improve the score please
   use static cache.
 *  Thread Starter [Sergey](https://wordpress.org/support/users/kuuuzya/)
 * (@kuuuzya)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/remove-unused-javascript-4/#post-13671274)
 * Hello, thank you for the answer. But I use static cache. And the only message
   I got in PageSpeed is about JacaScript. Please, check the full screenshot: [https://docdro.id/luBsBZv](https://docdro.id/luBsBZv)
 * There are 2 messages about removing JS. So I ask, how to delete it 🙁
    -  This reply was modified 5 years, 6 months ago by [Sergey](https://wordpress.org/support/users/kuuuzya/).
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/remove-unused-javascript-4/#post-13676259)
 * This issue is not from our plugin. This is an issue from google PageSpeed tools
   authors. This issue is globally present on every site.

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

The topic ‘Remove unused JavaScript’ is closed to new replies.

 * ![](https://ps.w.org/accelerated-mobile-pages/assets/icon-256x256.png?rev=1693616)
 * [AMP for WP - Accelerated Mobile Pages](https://wordpress.org/plugins/accelerated-mobile-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accelerated-mobile-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accelerated-mobile-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [js](https://wordpress.org/support/topic-tag/js/)
 * [unused js](https://wordpress.org/support/topic-tag/unused-js/)

 * 3 replies
 * 2 participants
 * Last reply from: [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/remove-unused-javascript-4/#post-13676259)
 * Status: resolved