Strange YouTube embed coding question

Out of context: Reply #10

  • Started
  • Last post
  • 22 Responses
  • ESKEMA0

    A cdn is just a repository for scripts. You can use them instead of hosting them yourself. It has the added benefit of already being cached by the user browser because since lots of sites use the same cdn, chances are a user already browsed a page that included jquery or whatever script from the same cdn, so it's already cached and will load quicker. The downside is you don't control the source, but they're pretty reliable so it doesn't really matter much.

    You need to control the width of your container via CSS.

    Something like :

    #video-container{
    max-width: 800px
    }

View thread