diTii.com Digital News Hub

Sign up with your email address to be the first to know about latest news and more.

I agree to have my personal information transfered to MailChimp (more information)


Digg On jQuery’s JavaScript Library

Digg is now using jQuery for their DOM, Ajax & animation needs. The switch came with the new comments section, where all animations are now powered by jQuery. The new system completely took advantage of plugins to build out the system. These included Klaus Hartl’s jQuery cookie plugin and Ken Stanley’s FlyDOM for jQuery and totally validates the quality of the work being produced by the jQuery community. Having Digg as a user really bolsters to project’s image and assures jQuery’s place as one of the top JavaScript libraries available. Its a very big development for the team and the project.

Probably the coolest, technically speaking, portion of the new comments is the manner in which most of the page is created. No longer do we create static HTML in PHP and send you a huge HTML page. Instead we give you the basics and, via AJAX/JSON, we make requests to the API and dynamically create the DOM using the FlyDOM jQuery plugin. The FlyDOM JSON templates are a stroke of genius if you’re looking at loading JSON dynamically into the DOM. The advantage of this is that initial page loads are much snappier and you can load the threads you wish to read on demand.

Daniel has written up a detailed overview of the design decisions so if you’re interested in the design aspects you’ll definitely want to check that out.

Source:? joestump

Digg, Comments, Web designing, Blog designing, jQuery, JavaScript, Library

Share This Story, Choose Your Platform!

Do NOT follow this link or you will be banned from the site!