Stay too long at the fair

What's the origin of: 'stay too long at the fair'?

I couldn't find it in my references. I think the origin comes from staying too long at the once-a-year carnival, county fair, etc., to the point a person is dazzled and unsatisfied with ordinary life. But a search online gave another meaning, "don't stay too long at the fair," quit when you're ahead.

-

........ and possibly before you upset the folks back home - including a worried / suspicious girlfriend. There's an old song (too chintzy to be called a folksong, more a children's song):
en.wikipedia.org/ wiki/Johnny's_So_Long_At_The_Fair. Dated 1770s in the UK, 1790s in US.

I thought there was a song -- searched lyrics + stay too long at the fair. Didn't find anything.

Replies