Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

YouTube video embed slowing load-times

Featured Replies

I'm creating a website with a YouTube video embed on the homepage, according to Pingdom it adds around 200KB+ to the page and is a large chunk of the loading time, it also contains 10 HTTP requests! Are there any workarounds to this?

 

For example I've seen in places where it won't load the video until you click on it. Because some users of the site won't watch the video, therefore it'll be silly to increase the loading time for something that everyone may not use.

 

Thanks for any help (:

Edited by Charlie

  • 1 year later...

You can do what Google+ does. Instead of showing the player, show a tumbnail preview image of the video with a play button overlaid. When a user clicks, it should get replaced with the actual player. You can either write the javscript for that logic or use the one from here. skipser[dtcom]/501

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.