search result view optimizations

- reorder script/css tags because chrome told me to when auditing
- only render search results when they become visible
- defer search result rendering and check again if they're still visible