title: How to include custom JS in AMP Page through SW?
body: <p>We have gone through from all possible blogs of AMP but couldn't find any way to include custom JS in AMP. This blog(<a href="https://www.ampproject.org/docs/guides/pwa-amp/amp-as-pwa#extend-your-amp-pages-via-service-worker" rel="nofollow noreferrer">https://www.ampproject.org/docs/guides/pwa-amp/amp-as-pwa#extend-your-amp-pages-via-service-worker</a>) indicates that we can add Custom JS in AMP with the help of Service worker but haven't describe how to do it.</p>
  
  <p>Please let us know How to do it.</p>
  
  <p>Edit:- After adding JS at the run time, it again show the same old error, Please have a look to the image</p>
  
  <p><a href="https://i.stack.imgur.com/jO93P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jO93P.png" alt="enter image description here"></a></p>