/Latest Projects

> iScroll may soon change name

You can say that your open source project got some kind of success only when you receive a "cease and desist" notice from a corporate from Nebraska. Read more »

> Add to home screen

Add to homeI found that many iPhone and iPad users don't know that they can add their favorite web sites to the Home Screen and interact with them like standard native applications. This script helps them to discover this great feature and suggests the steps needed to add your web app to the dashboard. Read more »

  • Posted on: Jan 23
  • Tag:
  • Reactions: 306

> Device motion + websockets demo

Socket ballsiOS 4.2 is finally out and it adds a couple of new important tools to the web developer's arsenal: websockets and devicemotion. The former makes client/server communication a snap, the latter brings accelerometer support to the browser. I wanted to test both technologies and see what problems might arise. It has been a very interesting experience, here're my impressions. Read more »

> Testing memory usage on mobile Safari

memory_chipHow many elements can I load into the iPhone browser before it crashes? I've been asked this question many times. We don't have memory management on Safari mobile browser, and we don't know when it is going to crash. This level of uncertainty bothered me enough that I decided to do some (admittedly empiric) tests. Read more »

> iScroll Google Group officially opened

After more than 800 questions, requests and suggestions sent for iScroll I finally decided to open a discussion group so that it will be easier to browse and search through the messages. Read more »

> Follow along floating layer

floatWe have to find smart alternatives to meet the lack of position:fixed on iPhone. If you don't need the complexity of iScroll you may find this script useful. All it does is to move a layer together with the page scroll position. If you are familiar with the mobile Gmail web app you should know what I'm talking about. Read more »

> You shall not flicker!

flickeringOff screen items on iScroll are not cached by the mobile browser, when it comes their turn to appear on screen they need a few moments before being accessible, creating a nasty flickering. Well, there's an easy trick to force the browser to cache all elements and it's so simple I regret not having tried it before. Read more »

> Do you really need jQuery (for mobile dev)?

frame iphoneI love jQuery, I use it everyday, you can spot it even on this blog. It's a life saver in the times of desktop browser discrepancies (yes, I'm talking to you IE), but modern browsers and specifically mobile browsers are good enough not to need any bloated framework on their shoulders. In this post I'm showing you that 90% of the times you are using a framework for nothing. Read more »

> iScroll v3.6 Bug Squashing Edition

I finally took the time to fix some nasty bugs that were infesting iScroll. This has been the most important bugs hunting session since v3.0. Hurry up, take it while is hot. Read more »

> HW Accelerated Accordion

thumb-accordionAccordion on mobile webkit is a bad beast. The accordion effect is usually obtained by reducing/incrementing the elements height. Unfortunately, on mobile, height and width are two not hardware accelerated properties, which means choppy animations. Fear not: I just baked for you a translations-only height-changes-free accordion for all your mobile needs. Read more »

> iScroll snaps to version 3.6 (beta)

One of the most important features has been finally added to iScroll: please welcome the snap scroll. The scrolling area is subdivided into pages and you may choose to scroll to any page both programmatically and with user swipes. The code has been further optimized so that the new feature doesn't impact on file size nor performance. Read more »

> Server maintenance

On Saturday 31th I had to do some server maintenance and few comments and emails sent through the contact form could have been lost. So if you don't see your comments or a reply to your emails, I'm not censoring or ignoring you but --unfortunately-- you have to resend them. Read more »

> iScroll 3.5 adds scrollToElement()

The most requested feature for iScroll was probably the ability to programmatically scroll to an element by #id. v3.5 adds this feature and much more. You can actually scroll to any element from a CSS3 query selector opening the door to hardware accelerated carousels. Read more »

> iScroll v3.4 shrinks and loves desktop browser

Frameworks for mobile platforms are coming out quickly. What was pioneering not more than two months ago is now everybody's land. In this scenario does it still make sense to develop stand alone scripts like iScroll? Short answer: yes. Read more »

> iScroll dreams of Electric Sheep (aka v3.3 beta 3)

This latest update brings even better Android compatibility. If I receive no complains I'd consider this release final, freeze the code and move to the next milestone (3.4). Read more »