I’ve been reading all the posts dealing with adding calculators to webpage in Freeway. It seems like javascript makes sense for providing pricing feedback to web visitors. I even found an example of someone already doing what I have in mind.
Wow, that’s pretty cool! I went back and looked at the code again, and at the very bottom of the page code I see:
I’m a real novice as javascript, but I thought .js got loaded in the head? Is this .js code being loaded on page load, or is it working some other way?
The preferred method is now placing scripts before the closing tag to help speed up page load. There are instances where it may need to be included in the tag such as when the DOM needs to be manipulated prior to the entire page loading. It depends on what needs to be done.
Todd
I’m a real novice as javascript, but I thought .js got loaded in the head?