Q&A: use login page as opportunity to load/cache styles and scripts?
Question by iantempest: use login page as opportunity to load/cache styles and scripts?
for a web application, would it be a good idea to load the sites style and scripts on the login page, (with scripts at the bottom so they dont delay rendering), so that while the user is entering in their username/pass they are simulateously priming their cache for the web app ?
Best answer:
Answer by M. L.
That’s actually not a bad idea at all.
Login pages tend to take a while to get through as the user has to enter their login credentials. Using that time to load elements silently in the background makes a lot of sense.
The beauty of it is that if you are doing cookie-based authentication and they can skip logins in the future, they’ll most likely have your page elements cached anyway. Overall, it’s a win-win for you and the users.
Add your own answer in the comments!