Wednesday 16 January 2013

Important Stacks Update - Google updated hosted version of the jQuery Javascript library

Stacks update 1/16/13?

Brian Corbett's Avatar

Brian Corbett

January 17, 2013 @ 05:12 AM
I just received an email via doobox regarding a stacks update today. Wondering where that is available and how I can obtain it. I am in the midst of preparing my site update for the first quarter and want to make sure I don't have any JQuery issues.
  1. 2 Posted by Areg Jera on January 17, 2013 @ 07:41 AM
    Areg Jera's Avatar
    Yes I have the same issue. Doobox had informed me that I need to download a stacks plugin update in order my my sites to function properly because of the change in Google's jQuery.
  2. Support Staff 3 Posted by Isaiah on January 17, 2013 @ 07:42 AM
    Isaiah's Avatar
    You will likely see the update the next time you start up RapidWeaver and open a Stacks page. If not you can always download it from our site: http://yourhead.com/stacks
  3. Isaiah closed this discussion on January 17, 2013 @ 07:42 AM.
Comments are currently closed for this discussion. You can start a new one.
------------------------------------------------------------------------------------------------

Important Stacks Update

As an owner of our Stack Products we want to inform you about an
important update of the Stacks Plugin.

Google updated their CDN hosted version of the jQuery Javascript library,
that is used by the Stacks Plugin and so by our Stack Products.

This new major version of jQuery might be causing some of our Stack Products
to show unexpected behavior when you are using the Stacks Plugin v2.1.

This affects the following Stack Products:
- Fancy Intro
- ImageMapper
- ShakeIt
- ScrollTo and Bounce


Yourhead Software released a new version of the Stacks Plugin v2.1.8,
that is using an older version of jQuery and so restores the behavior of the Stack Products.

We strongly recommend updating your version of the Stacks Plugin when you are
using one of the mentioned products.

You can update to this version using:
* The direct download link from the YourHead website
* Re-start RapidWeaver with your project file and select an Stacks Page for an automatic update.

After updating the Stacks Plugin it is time to republish your site(s).
We recommend using File -> Republish All Files to make sure that all required page assets are uploaded.


Our apologies for the inconvenience, we are working on updates to prevent this from happening.

In case an issue related to this jQuery update is not solved by the mentioned actions you can
of course contact us via support@tsooj.net


Kind regards,

Joost

©2013 Tsooj Media | Amersfoort | The Netherlands | www.tsooj.net

---------------------------------------
Begin forwarded message:

From: "Elixir Graphics"
Subject: Important update for the Bricks stack
Date: 17 January 2013 2:11:48 AM AEDT
To:
Reply-To: "no-reply@cartloom.com" <no-reply@cartloom.com>


Important Update!

Today Google made an update to their hosted version of jQuery, the javascript file the Stacks plugin uses. This javascript file is what powers much of what the Bricks stack does.

In it being updated this has caused a problem with another javascript library used within the Bricks stack, called Masonry.

I have just pushed out an update to the Bricks stack that will fix the problem for now until the Masonry library is updated, at which time we will likely send out a supplemental update.

Do note that this update to the jQuery library has broken a lot of stacks out there, not just the Bricks stack, so be patient with the Stacks developers as we all sort through these problems.


How to get the update:

The update has been pushed out to all Bricks users via Stacks built-in updater. To make sure you get this latest version and it is applied to your sites, please follow the instructions below:

- If you currently have RapidWeaver open, quit RapidWeaver. Once it has quit, relaunch it.

- Go to a page in your project file that is a Stacks page. This triggers Stacks to look for updates.

- Wait several minutes for Stacks to poll all of your stacks' plugins updates. This time varies depending on the number of stacks you have installed.

- Once it has finished you should see a red exclamation mark on the Bricks stack icon in the Stack Elements library drop down.

- To apply the update, highlight Bricks in the Stack Elements library by single-clicking on it.

- At the bottom of the Stack Elements drop down you will see a small gear, or cog, icon. Click this and choose 'Install Update.'

- Once it has finished, just to be sure all is well, quit and then restart Rapidweaver.

- From the File Menu in RapidWeaver choose the Mark All Pages as Changed. Then go back to the File Menu and choose Republish All Files.

We're terribly sorry for this inconvenience. It is a shame that an update to a javascript library that is remotely hosted, and automatically applied by Stacks, would cause such a hassle for all involved.

Sincerely,
Adam

Why to use Google hosted jQuery CDN | jQuery By Example

Why to use Google hosted jQuery CDN | jQuery By Example

Thursday, January 5, 2012


Why to use Google hosted jQuery CDN

Google is sea of free services. Do you know that Google is also hosting jQuery libraries on its CDN(Content delivery network) and allows any website to use it for free. But why to use Google hosted jQuery CDN?

Advantage:


  • Caching: The most important benefit is caching. If any previously visited site by user is using jQuery from Google CDN then the cached version will be used. It will not be downloaded again.
  • Reduce Load: It reduces the load on your web server as it downloads from Google server's.
  • Serves fast : You will be also benefitted from speed point of view. As Google has dozen's of different servers around the web and it will download the jQuery from whichever server is closer to the user. Google's CDN has a very low latency, it can serve a resource faster than your webserver can.
  • Parellel Downloading: As the js file is on a separate domain, modern browsers will download the script in parallel with scripts on your domain.

How to use it?


There are 2 ways to load from Google CDN.

Method 1:
1<script  type="text/javascript"
3</script>

Method 2
1<script src="http://www.google.com/jsapi" type="text/javascript"></script>
2<script type="text/javascript"><!--
3google.load("jquery", "1.7.1");
4google.setOnLoadCallback(function() {
5// Place init code here instead of $(document).ready()
6});
7// -->
8</script>

What if Google CDN is down?


It is a good idea to use CDN but what if the CDN is down (rare possibility though) but you never know in this world as anything can happen. So if you have loaded your jQuery from any CDN and it went down then your jQuery code will stop working and your client will start shouting.

Hang on, there is a solution for this as well. Below given jQuery code checks whether jQuery is loaded from Google CDN or not, if not then it references the jQuery.js file from your folder.
1<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
2<script type="text/javascript">
3if (typeof jQuery == 'undefined')
4{
5  document.write(unescape("%3Cscript src='Scripts/jquery.1.7.1.min.js' type='text/javascript'%3E%3C/script%3E"));
6}
7</script>
It first loads the jQuery from Google CDN and then check the jQuery object. If jQuery is not loaded successfully then it will references the jQuery.js file from hard drive location. In this example, the jQuery.js is loaded from Scripts folder.

Few quick tips


If you want jQuery 1.7.1 you can use a url like this:
1http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js
Suppose you want to use latest version of 1.7 release,
1http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js
If you always want to refer the latest version of jQuery,
1http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js

Feel free to contact me for any help related to jQuery, I will gladly help you.