SproutCore + Apple’s mobileMe: Can You Imagine a Better Start for a New Framework?

Leave a comment

Yesterday on WWDC APPLE announced their new online service called mobileme that will become the successor of the highly overpriced yet beloved .mac services. As mentioned over here at techcrunch and via the developer’s tumblelog mobileme is built on the rather new JavaScript framework called SPROUTCORE. This is what i would call a brilliant headstart into the race between the different frameworks. Looks like the first collaboration between sprouit/sproutcore and apple for the .mac galleries in 2007 has been a pleasant journey for both parties. Make sure to check out mailroom if you are after more products from sproutit.

sproutcore-logo

Update: nice post on AppleInsider and a in deep review at RoughlyDrafted Magazine.

Google is Your Javascript Shangri La.

Leave a comment

The Shangri La

By May27th. Google announced a new service called the Google AJAX Libraries API on their blog. Explained in a really simple way by SitePoint everything is about speeding up the entire internet by using shared JavaScript libraries. The following JavaScript frameworks are already available on the google grid:

There are two possible ways to access the scripts from your page.

FIRST: use a really simple <script src=”…”> tag or

SECOND: use the Google AJAX API Loader’s google.load() method and call the different frameworks directly.

To quote Google: “The AJAX Libraries API takes the pain out of developing mashups in JavaScript while using a collection of libraries. We take the pain out of hosting the libraries,correctly setting cache headers, staying up to date with the most recent bug fixes, etc.”

This really should cut the response time of some websites. But…

Google will continue to track your visitors behavior and even *could* change the JavaScript code doing nasty things like inserting ads, whatever… They won’t but i would prefer a distributed hosting solution. Kind of P2P Framework collection. Until something like that is available i am sure a lot of people will make good use of google’s service.

How-To Solve: “_gat is not defined”, a google analytics workaround

18 Comments

Just a small JavaScript addition can solve a minor bug in Google’s Analytics Script. If anybody has a common AdBlocker installed and visits your Google Analytics enhanced page, she will notice 2 errors, including the famous: “_gat is not defined”. Looks like the google script does not validate if the actual tracking script is already loaded before it is executed.

As a quick work around add the following BOLD lines around your script:

<script type="text/javascript">
if (typeof(_gat) == 'object')
{ 
var pageTracker (YOUR TRACKING CODE)
...
}
</script>

ét voilá.

Why Twitter is Slowing Down the Internet.

5 Comments

Twitter CatWith all the services and widgets tied around the hyped “micro blogging service” twitter we start to experience a strange phenomenon. A lot of websites are getting slower and slower just because webmasters present their latest “tweets” somewhere online. Take some very well known pages as an example: first Jason Kottke – no need for explanation – but since he integrates his twitterstream into his webpage his website loads significant slower compared to the pre-twitter times (UPDATE: please see comment #3 below  Jason is caching his twitterstream. I was wrong). Second: take evhead, the webpage of blogger/twitter founder Ev Williams. His twitter stream is presented on top of the page, but as soon as twitter slows down or even actually “is down” you will wait ages to get beyond the first line saying: “Twitter updates”. So maybe it is a good idea to include the twitter javascript at the very bottom of your page. Making your page load without waiting for the twitter server(s) to respond in time. Since I am not the only one discovering this problem (see Alex Iskold on “How JS is Slowing Down the Web”), there are some brilliant workaround out there, a very clever one by Remy Sharp.

Newer Entries