title: Django doesn't serve all js files in development
body: <p>I have two js files in my static folder, main.js and animation.js. When I run <code>py manage.py runserver</code> and go to localhost, I only see main.js. I've tried hard refreshing Chrome and Firefox, running collectstatic, and it's still the same. One time when I first loaded the page I saw both js files, but after clicking around the site, the animation.js file just disappeared. My terminal output shows that both js files were found. I'm confused why only one shows up in the browser. If both were missing that would indicate something wrong in settings, but I don't know with just one missing. What could be my problem?</p>
  <p>Here's my settings.py:</p>
  <pre><code>DEBUG = TRUE
  STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
  STATIC_URL = '/static/'
  STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]
  </code></pre>
  <p>I include the js files in my base.html which every page extends:</p>
  <pre><code>{% load static %}
  &lt;!DOCTYPE html&gt;
  &lt;html lang=&quot;en&quot;&gt;
  &lt;body&gt;
      &lt;script src=&quot;{% static 'js/main.js' %}&quot;&gt;&lt;/script&gt;
      &lt;script type=&quot;module&quot; src=&quot;{% static 'js/animation.js' %}&quot;&gt;&lt;/script&gt;
   &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>