Compositions and methods for providing anesthesia to the eye, for treating or preventing inflammatory disorders in the eye, or for treating or preventing ocular infections, are disclosed. The compositions include a glycosaminoglycan, such as hyaluronic acid, in a concentration suitable for achieving a desired viscosity, as well as an active agent, such as an anesthetic, anti-inflammatory, antimicrobial, antiproliferative, antimetabolite, prostaglandin, antioxidant, TGF-beta, or mitomycin C.