and end with . Essentially, you’ll want to copy everything (including the script and ending with script) and save it in a text file named something.js (whereas something in the filename describes what that script does. The filename doesn’t really matter, but naming it with a memorable name will help you in the future.<script type="text/javascript" src="http://www.domain.com/assets/js/something.js"></script>
That is the code for “calling” your JavaScript file named something.js in a folder called javascript.
After you have saved your html file, go to that web page on your web site. The code will have been moved out of your html page and your html pages won’t suffer from what I call “code bloat” which ultimately hurts your search engine optimization. The more you can focus the content in your html files the better.
0 comments:
Post a Comment