title: How to Add Client-side Scripts to Nuxt.js?
body: <p>I've been reading Nuxt.js's documentation on Plugins and the config nuxt file for adding scripts. I tried both, but no luck.</p>
  
  <p>I'm trying to add the following code (located in <code>/static/js/scripts.js</code>):</p>
  
  <pre><code> $(window).scroll(function(){
       if ($(window).scrollTop() &gt;= 200) {
          $('nav').addClass('fixed-header');
       }
       else {
          $('nav').removeClass('fixed-header');
       }
   });
  </code></pre>
  
  <p>Can someone help me please?</p>
  
  <p>In regular HTML usage, I just do the script tags before the closing body tag (for the sake of user experience). I was able to get the <code>scripts.js</code> to load in a Vue.js 2.0 framework, but once I moved everything to Nuxt.js, and tried to adapt it to Nuxt.js, everything else worked, except the <code>scripts.js</code> file.</p>