Lollygagging

Have you recently been accused of “lollygagging”? I remember that was a term my mother would use a lot when we were failing to keep up with her speedier pace. I caught myself saying it to a millennial today and it set me down a road of trying to remember a)Where did that come from? and b)When did I get so old I started using it? Some other type of expression you use that gets you the look of “What the heck?”