Hey Everyone,
My javascript usage on websites that I typically create is minimal, so I’m not an expert on best practices. On my portfolio site http://www.seanmichael.me, I have all of my custom javascript compiled into one file that loads on every page of the site. I noticed that when looking at the site with developer tools, on anything other than the “About” page, it is logging a bunch of errors. The reason for this is that there is some js specific to the “About” page that loads on every page. It bothers me to see these errors every time that I view the site with developer tools. So, I guess my question is this: What is best practice? Do these errors matter, and if they do, what would be the best practice for conditionally loading this js?
Thank You,
Sean Michael