inherit
166273
0
Apr 26, 2012 16:24:08 GMT -8
Dyr
90
May 2011
dyr
|
Post by Dyr on Jan 20, 2012 17:10:38 GMT -8
What I was aiming to do is host some codes I use on my proboards site (with coders permission) on another website so that there is much less in the headers/footers and, once everyone has these in their cookies, the site will run slightly faster. First off, how would I go about this, if it's even recommended? I've heard of Google Code, and sites such as this for hosting open-source codes. However, where would I go to simply rehost something for private use? Would using a small portion of a hosts' FTP to upload the codes work? Just really unsure where to start, or if this will even make much of a difference speed-wise. example: pb.proscripts.co.uk/uploads/CFHeader.jsso then I can just put <script src=""> in to my website?
|
|
Former Member
inherit
guest@proboards.com
171777
0
Nov 25, 2024 9:45:57 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jan 30, 2012 21:49:05 GMT -8
The web page loads JS first, it might be a good idea, and it would run faster. Plus you wouldn't have a cluttered H/F. You can try here: www.yourjavascript.com/ Never used them as I have my own host as my own. But in the past I have done your idea and it does normally load faster, most of the time really.
|
|
#00AF33
Bark Different.
102833
0
1
Feb 12, 2023 16:57:46 GMT -8
RedBassett
I'm a Marxist/Lennonist of the Groucho/John variety.
15,405
April 2007
applecomputer
RedBassett's Mini-Profile
|
Post by RedBassett on Jan 30, 2012 22:06:34 GMT -8
To answer your last question, yes, you just link the script with a src.
Also to nit-pick, the external JS files will be stored in the user's cache (assuming they don't clear or disable their cache), and will run faster for that reason. For the most part, speed shouldn't be an issue with small codes, but extremely large codes will see a difference.
|
|
Former Member
inherit
guest@proboards.com
171777
0
Nov 25, 2024 9:45:57 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jan 30, 2012 22:34:39 GMT -8
Even doing a style sheet would also help out as well. The same code for js will work for the .css file.
|
|
inherit
97216
0
Nov 23, 2024 12:51:52 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Feb 2, 2012 17:30:18 GMT -8
<link rel="stylesheet" type="text/css" href="URL.css" />
Is most commonly used for CSS.
|
|