The only free and comprehensive online etymological dictionary of the Spanish language
ya (Adverb) "now," "already"

Very early 12th cent. From Latin iam 'id.' From Proto-Italic *iām "as far as this is concerned." From Proto-Indo-European *h1i̯-h2m "this," in the accusative case. Probably from *īm "he," "she;" the *h2 added via analogy with other pronouns.

Romance: Western Vulgar Latin: Asturian , Portuguese , Galician xa, Catalan ja, French , Italian già