c. 1300 (late 13c. as a surname, late 14c. as the name of a dog), "merry, cheerful, naturally of a happy disposition; comical; suggesting joy or merriment," from Old French jolif "festive, merry; amorous; pretty" (12c., Modern French joli "pretty, nice"), a word of uncertain origin. It has an apparent cognate in Italian giulivo "merry, pleasant."
It is often suggested that the word is ultimately Germanic, from a source akin to Old Norse jol "a winter feast" (see yule). OED, however, finds this "extremely doubtful," based on "historic and phonetic difficulties." Perhaps the French word is from Latin gaudere "to rejoice," from PIE *gau- "to rejoice" (see joy).
Meaning "great, remarkable, uncommon" is from 1540s, hence its use as a general intensifier in expressions of admiration. Colloquial meaning "somewhat drunk" is from 1650s. As an adverb from early 15c., "stoutly, boldly." For loss of -f, compare tardy, hasty. Related: Jolliness. Broader Middle English senses, mostly now lost, include "vigorous, strong, youthful" (c. 1300); "amorous; lecherous; ready to mate; in heat" (c. 1300); "pleasing, beautiful, handsome; noble-looking; handsomely dressed" (c. 1300); playful, frisky (mid-14c.); "arrogant, overweening, foolish" (mid-14c.).
-ly 2
common adverbial suffix, forming from adjectives adverbs signifying "in a manner denoted by" the adjective, Middle English, from Old English -lice, from Proto-Germanic *-liko- (cognates: Old Frisian -like, Old Saxon -liko, Dutch -lijk, Old High German -licho, German -lich, Old Norse -liga, Gothic -leiko); see -ly (1). Cognate with lich, and identical with like (adj.).
Weekley notes as "curious" that Germanic uses a word essentially meaning "body" for the adverbial formation, while Romanic uses one meaning "mind" (as in French constamment from Latin constanti mente). The modern English form emerged in late Middle English, probably from influence of Old Norse -liga.