The definition of loiter is to hang around someplace without a reason to be there.(verb)
When you hang out at a store without any intent to buy anything, this is an example of a situation where you loiter.
See loiter in Webster's New World College Dictionary
Origin: ME loitren < MDu loteren (Du leuteren, to dawdle), akin to OE loddere, beggar < IE base *(s)leu-, to hang loosely > sleet, slur
See loiter in American Heritage Dictionary 4
intransitive verb loi·tered, loi·ter·ing, loi·ters
Origin: Middle English loitren
Origin: , probably from Middle Dutch loteren, to totter, be loose.
Learn more about loiter