This informal meaning refers to being idle, lazy, or inactive instead of working.
They loafed around the house all weekend.
Stop loafing and finish your work.
This less common meaning describes moving casually, slowly, or without urgency.
The dog loafed along behind us.
He loafed through the market without buying anything.