Text this: Photonic contribution to the glass transition of polymers