Only compile createContext call for embed tags when necessary.