Video Lazy Load

Use

  • Lazy loader code is mainly used to improve load times for pages with a lot of media content, such as Admission, Orientation and Student Affairs.
  • Outputs a static image instead of the video embed.

NOTE: static images should be made using the template available in the Google Team Drive. They should be saved as christopher-newport-university-[keywords]-###x###.jpg and uploaded to site://_images/vid within a folder describing the video content.

Requires

  • image
  • video title
  • YouTube embed link

Output

Master of Financial Analysis video embedWason Center video embed