Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Template design and Front-End Code

Post Reply
 
Thread Tools
  #1  
Old 01-29-2009, 05:29 PM
IndoorJo's Avatar
IndoorJo Offline
forum loafer
 
Join Date: Jan 2009
Posts: 6
Question Dark Matter FREE template: utilities.js in image_template.html

Hi!

I have a question about the utilities.js enbedded in image_template.html:

PHP Code:
<script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/utilities/utilities.js"></script> 
Why is this file referenced to that URL and not referenced to the own file system (webspace)? In case of an failure on yui.yahooapis.com this script wouldn't work and as a result of this my website has an failure, too.

Thx for answering.
Reply With Quote
  #2  
Old 01-30-2009, 03:49 PM
jaywilliams's Avatar
jaywilliams+ Offline
Team Pixelpost
 
Join Date: Sep 2005
Posts: 1,003
Send a message via AIM to jaywilliams Send a message via MSN to jaywilliams Send a message via Yahoo to jaywilliams Send a message via Skype™ to jaywilliams
Quote:
What Are the Benefits of Having Yahoo! Host YUI Files?

Yahoo!’s network is located throughout the world. HTTP requests for YUI files are evaluated to determine their geographic source and then served from in-region server farms wherever possible. This edge-computing system provides shorter round-trip times for packets as compared to the use of centralized network hosts. Because YUI files (consisting of JavaScript files, CSS files, and image resources) are static, there need be no relationship between the server providing these files and the server holding session information and business logic for a given application. Moving these files off a central server and closer to your users, therefore, should make your application more responsive overall.
Read Yahoo's full reason here: http://yuiblog.com/blog/2007/02/22/free-yui-hosting

Of course, you can host them yourself, if you wish too.
__________________
Jay Williams | A Different View
Reply With Quote
  #3  
Old 01-30-2009, 04:53 PM
IndoorJo's Avatar
IndoorJo Offline
forum loafer
 
Join Date: Jan 2009
Posts: 6
Hi Jay,

ah okay, I understand...

As I read on developer.yahoo.com, there is a new version of the utilities.js:
Code:
yui.yahooapis.com/2.6.0/build/utilities/utilities.js
- Is it useful to use this version or is it better to let it as it is?

Thx,
Jochen
Reply With Quote
  #4  
Old 01-30-2009, 05:01 PM
jaywilliams's Avatar
jaywilliams+ Offline
Team Pixelpost
 
Join Date: Sep 2005
Posts: 1,003
Send a message via AIM to jaywilliams Send a message via MSN to jaywilliams Send a message via Yahoo to jaywilliams Send a message via Skype™ to jaywilliams
As the old saying goes: "If it ain't broke, don't fix it."

But if you want, you could try using the new version, you could always revert back if you find that it broke something.
__________________
Jay Williams | A Different View
Reply With Quote
  #5  
Old 01-30-2009, 05:05 PM
IndoorJo's Avatar
IndoorJo Offline
forum loafer
 
Join Date: Jan 2009
Posts: 6
Hi Jay,

okay, but I'm not familar with this js-file and I don't know in detail, what it does and what not. So I think it's better to let it as it is... :-P
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 01:58 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs