I'm having trouble getting this codepen code to work on my local machine:
http://codepen.io/desandro/pen/mCdbD/
Whenever I attempt to load the JavaScript as an external script, it doesn't function correctly:
<!DOCTYPE html>
<html lang = "en">
<script src="isotope.pkgd.js"></script>
<script src="jquery.min.js"></script>
<script src="isotopes.js"></script>
However, if I manually include the file in the markup:
<!DOCTYPE html>
<html lang = "en">
<script src="jquery.min.js"></script>
<script src="isotope.pkgd.js"></script>
<script>
// JavaScript functionality
</script>
<link rel = "stylesheet" type= "text/css" href = "style.css">
<h1>Isotope - filtering with search field and button filters</h1>...
It seems to work intermittently. Can someone provide guidance on how to successfully load the external js file?