Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.

Closed Thread
Thread Tools Display Modes
Share |
Old 02-08-2017, 03:34 PM
imadam's Avatar
imadam imadam is offline
Contributing Member
Join Date: 12-06-09
Location: guildford
Posts: 355
iTrader: 0 / 0%
is it speedy to include stylesheets/images from another domain?

so i've got 5 different websites that all use the same custom built theme. 1 is designed to list all services, then the other 4 are sites dedicated to each service. sometimes on those sites images are say used for deals on site 1,2 and 4, or 1 and 4 etc.

at the moment i've been uploading the images to each domain even though the domains are all on the same server. is it ok in terms of speed to upload the image to the main domain and then have the others link to that image on the main domain?

same with style sheets? can i have one master style sheet on maindomain.com which all the others link to?

if so, is there a quicker way to link to the image/stylesheet other than pointing to the exact path of the file?



Old 02-09-2017, 02:27 PM
gxnpt's Avatar
gxnpt gxnpt is offline
Contributing Member
Join Date: 09-10-16
Location: far west Florida near Destin
Posts: 104
iTrader: 0 / 0%
If the files are referenced relative to current page then no issue - if referenced as another url it will be treated as a different web addresses and render same server or different server a moot point (get there from very beginning of journey vs already on location type reference).

page.php, or ./page.php, or ../thataway/page.php vs http://somedomain/thataway/page.php which will go through dns resolution as an example

Last edited by gxnpt; 02-09-2017 at 02:56 PM.
Old 02-09-2017, 10:02 PM
HTMLBasicTutor's Avatar
HTMLBasicTutor HTMLBasicTutor is offline
Join Date: 10-29-07
Location: Canada
Posts: 26,707
iTrader: 5 / 100%
Supposedly, if you put stuff on a CDN site your site will render quicker because multiple sites are sending back the information at the same time instead of waiting for your own server to process instructions in the order received.

IMHO this creates a problem instead of solving one. What if the CDN goes down? Then your site stalls waiting for the information to come back to it is no better than waiting for your own server to render the page. At least if your own server goes down your whole site goes down and people are not annoyed they sat there a waited for the page to render because of one item stuck when the CDN goes down.

Idea to solve your problem,
Why don't you create your own CDN on your own server for your typical elements and have your own sites using these elements fetch the typical items. This solves the update problem at least. Of course you will have to do absolute links for these typical items but you would have to do that anyways if you used someone else's CDN.
Old 02-14-2017, 12:09 PM
eagle12 eagle12 is offline
Contributing Member
Join Date: 11-30-11
Posts: 137
iTrader: 0 / 0%
There is no way that you can provide the reliability that something like Amazon Cloudfront CDN can provide. Go with something like that.
Go Back   Webmaster Forum > Web Development > Coding Forum

Closed Thread

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Would you include product images in your RSS Feed for E-Commerce store? consultant2b Online Business Forum 6 06-26-2010 11:13 AM
Speedy Proxies Script BromptonWeb Content 1 03-21-2009 10:58 AM

V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory

All times are GMT -7. The time now is 11:56 AM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC