Etymology
Today it means: In a nonserious way or manner. Full definition →
From nonserious + -ly.
Etymology from Wiktionary, CC BY-SA 4.0.