I have a javascript application and i dont know what is a better practice for loading data. For example, i have a contact table with my contact informations (FirstName, LastName, Addresses, PhoneNumbers, Website etc.). So now i will show these informations and i make two "lists". In the first list, i will show all my contacts but only with the attributes "FirstName" and "LastName" and if i click on a contact, i will show all informations (FirstName, LastName, Addresses, PhoneNumbers, Websites etc.).
Is it better to load the whole informations at a time or load the "detail" informations only if i click on a contact?