Skip to content

Instantly share code, notes, and snippets.

@TRManderson
Last active October 5, 2016 02:27
Show Gist options
  • Select an option

  • Save TRManderson/eedb2ad268a11f41cbcdfda884f76ad8 to your computer and use it in GitHub Desktop.

Select an option

Save TRManderson/eedb2ad268a11f41cbcdfda884f76ad8 to your computer and use it in GitHub Desktop.
Example jquery.load
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#viewer").load("/viewer.html");
console.log("Done");
});
</script>
</head>
<body>
<div id="viewer">
</div>
</body>
</html>
<script type="text/javascript" src="/test.js">
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment