The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Use youtube? Don't let it slow your site down!
So I came across this page today and it's working wonders. It took a page on my blog from 3mb to around 600kb in total size.
http://www.labnol.org/internet/light...-embeds/27941/ All you have to do is pretty much write this in the footer & upload the file from the page above. I suggest trying it on a page with 2 or more youtube videos and you will definitely see a change not only in the loading times of your pages but also a bit of a increase in your pagespeed/yslow scores on webpagetest.org and both of these are always a plus! Code:
<script src="http://site.com/youtube.js"></script> |
#2
|
||||
|
||||
Hmm wonder how this works with AME? About to try it to find out - "can't hurt, can always revert."
OOPS after reading the entire article, two issues come up. 1.) I don't see any file from there to download. 2.) Would the AME definitions interfere with this? Or vice-versa? I'll wait a bit. |
#3
|
|||
|
|||
The js I was referring to was this.
https://labnol.googlecode.com/files/youtube.js So yeah like the guy stated, if you run a high traffic site, please host it locally lol. Sorry if I wasn't clear enough but that's the js that you want to save & upload to your host. |
Благодарность от: | ||
Max Taxable |
#4
|
||||
|
||||
Quote:
|
#5
|
|||
|
|||
Well simply put upload the file and then, add this to the footer template of a theme at the very bottom.
<script src="http://site.com/youtube.js"></script> Thats it! If you have any ill effects... just remove that line & it's reverted. |
Благодарность от: | ||
tbworld |
#6
|
|||
|
|||
Very interesting @final_kaoss... Thanks for sharing.
|
Благодарность от: | ||
Max Taxable |
#7
|
||||
|
||||
Well.... Turns out I already have a file styled "youtube.js" on my server. Wondering if that is a AME file...
|
#8
|
|||
|
|||
Nope, it doesn't appear to be from AME. Just checked it's 6 files & 7 folders.
|
#9
|
||||
|
||||
Quote:
UPDATE: This had no effect at all, apparently AME overrides the call. ANOTHER UPDATE: "Hey dummy, change the "site.com" in the call, to your actual domain where the js file is located!" Seems to have made it faster in threads with a bunch of videos, otherwise no change. All embeds are still there and everything still works right, can't see any harm done. I have the call installed on the footer of only one style, so i will test that and a style without, on webpagetest and see if there's a change in the kb loaded. --------------- Added [DATE]1383711077[/DATE] at [TIME]1383711077[/TIME] --------------- FINAL UPDATE... NO difference at all on kb loaded or pageload speed with and without this addition, while using AME. --------------- Added [DATE]1383716246[/DATE] at [TIME]1383716246[/TIME] --------------- Here's two identical tests at webpagetest dot org, with same browser, same location, same connection and only minutes apart. The first one is with this addition: The second one, without: I am using AME, and all this did was add six requests... and three bytes. |
#10
|
|||
|
|||
Not using AME, but I gave it a try, remotely as well as locally.
But no change in pageload speed or pageweight. Quite honestly, I could not find any change of operation. Unless I missed the obvious.... |
Благодарность от: | ||
Max Taxable |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|