Lightweight and Responsive Youtube Embed
If you are embedding Youtube video(s) into your site then you will need this plugin. As you may (or may not) know the default Youtube embed code is not responsive and in order to load the player itself your browser has to download more than 1MB of data from Youtube’s servers. That is way too much and this is the reason why we made this plugin. A video player has to be lightweight and responsive. Period. This plugin is replacing the default Youtube player with the video’s high quality thumbnail and a play button. The real player and the video won’t load until you click on the play button or the thumbnail itself. With this easy trick you will have a much lighter and faster website and the thumbnail + the actual player will be responsive too. Our plugin is only 60KB without any extra library or unnecessary function. If you are speed-optimizing your site or if you want to reduce the loading times of your pages then you are at the right place. This plugin will: Make all of the embedded Youtube videos responsive automatically Will reduce the size of your pages (where you have embedded videos) Will make your site faster Will improve the user experience You can also: Manually insert a different thumbnail for each embedded video with the ‘thumb_url’ parameter. [youtube_embed url=”video_url” thumb-url=”custom_thumb_url”] Manually set a different width for each video with the ‘width’ parameter. [youtube_embed url=”video_url” width=”50″] Manually align each video to left, right or center with the ‘align’ parameter. [youtube_embed url=”video_url” align=”center”] Disable the related videos Disable the video controls Disable the fullscreen option Align the videos globally or individually Set the custom video width for all videos or to just a single video with a shortcode parameter Comparison Here’s a quick comparison with the built-in TwentySeventeen theme (without any other plugin). We placed a default Youtube video embed code in a new and empty page, ran the tests and then replaced it with our solution before running the tests again. Total page size with the traditional Youtube embed code: 2.18MB Total page size with our lightweight & responsive embedder: 472KB Page load time with the traditional Youtube embed code: 5.33s Page load time with our lightweight & responsive embedder: 2.52s
Top keywords
- video14×3.53%
- youtube11×2.77%
- url8×2.02%
- embed7×1.76%
- responsive6×1.51%
- youtube embed6×1.51%
- page5×1.26%
- player5×1.26%
- videos5×1.26%
- align4×1.01%
- code4×1.01%
- embed code4×1.01%
Content Mask
Read More & View Demos Here Embed Any Content†‡ Into Your WordPress Website Content Mask allows you to embed any external content onto your own WordPress Pages, Posts, and Custom Post Types. The end result is fairly similar to setting up a Domain Mask, but the content is embedded into the front end of your website and is fully contained inside your WordPress permalink ecosystem. Example: If you built a landing page on landing-page-builder.com/your-landing-page/, you can simply create a new Page on your website at your-site.com/landing-page/ and paste in the URL of your landing page. The Content Mask plugin will then download and cache of copy of your landing page directly on your website, so any visitors that come to your-site.com/landing-page/ will see the landing page you built. This allows you to keep all of your links integrated into your WordPress Website. † Do not use Content Mask to embed any content that you do not own or do not otherwise have license to share, embed, frame, or distribute. Simple 2-Step UI With a simple 2-Step UI, you can embed any external content into your website without any complicated URL Forwarding, DNS Records, or .htaccess rules to mess with. Just enable the Content Mask on any Page, Post, or Custom Post type by clicking on the check mark. Then put in the URL that contains the content you want to embed. It’s that simple! Powerful Embedding and Redirect Options Using the Download method (default) will fetch the content from the Content Mask URL, cache it on your website, and replace the current page request with that content. By default, this cache lasts 4 hours – but it can be changed anywhere from “Never Cache” all the way up to “Cache for 4 Weeks”. Caching prevents the need for additional requests that slow down your site. Using the Iframe method will replace the current page request with a full width/height, frameless iframe containing the host URL. This method is ideal if the URL you want to embed won’t serve scripts, styles, or images to other URLs or IP Addresses. If you use the Download Method, and links or images look broken, you can try the Iframe method instead. Using the Redirect (301) method will simply redirect the visitor to the host URL. Simple Integrated Vistor Tracking In the Content Mask admin panel, you can enable tracking for Content Masked pages. This will allow you to see how many visitors are viewing these links. This is ideal for when you need to track acquisition, such as on a Landing Page. [Views] shows how many times that Content Mask page has been viewed by anybody (even logged in users) [Non-User] shows how many times it’s been viewed by visitors that are not logged in to the website. [Unique] shows how many times it’s been viewed by unique IP addresses. Note: IP addresses are one-way hashed and are not identifiable in any way. Creating a Content Masked Page Using the Content Mask Admin Panel Notes: Do NOT use Content Mask on any content you aren’t explicitly authorized to share or use. Please confirm you’re allowed to utilize and embed the content before embedding any particular URL. Content embedded using the Download method is cached using the WordPress Transients API for 4 hours by default. If the content on the external URL is updated and you would like a fresh copy, you may just click the “Update” button on the Page, Post, or Custom Post Type to refresh the transient, or click the “Refresh” link in the Content Mask Admin panel. You may also change the cache expiration timer per page anywhere from “Never” to “4 weeks”. You may use the Transients Manager plugin to manage transients stored with the Download method. All Content Mask related transients contain the prefix “content_mask-” plus a stripped version of the Content Mask URL, such as “content_mask-httpxhynkcom”. ‡ Your site may be prevented from processing page requests for any reason; Reasons include, but are not limited to: masking unauthorized content, at the request of the masked URL site owner, masking hateful content, masking illegal content, circumventing IP bans, etc. A dual one-way encrypted hash of your masking URL may be used to check for infraction. No identifying information will be used for this check, and no information is saved other than as a transient to prevent unnecessary duplicate checks per site Read More About Content Mask