Only load scripts if we have something to run

In particular, prevent loading ~600kb of javascript to not do anything on the homepage and new (proposed) about page.