hi everyone,
i have a login form on index page, and the login form needs some jquery, so after user has pressed login button (and successfully logged in) another page loads in. And this new loaded page also needs jquery, it means i have to load jquery.js file again. So how to avoid it?
And is it a good idea to make a login form as index page?

Including the same file again is not much of an issue, since the browser will cache the file (it will not be downloaded again).

It can be, it depends on what you want to achieve I guess.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.