background preloader

Jquery

Facebook Twitter

Display Loading Image While Page Loads. Published April 15, 2013 by Brad Knutson Often times as web developers, we build websites that are fairly media intensive.

Display Loading Image While Page Loads

Lots of graphics, slideshows, large Javascript files, large CSS files, etc, etc. It’s not uncommon for page load times to suffer on some really visually appealing and well designed pages. There has to be a better way to display these pages, rather than watch the awesome background image that we created load literally line by line. This topic got me thinking. In cases where we do not want to sacrifice style and design for page load time, perhaps we should consider another alternative? View Demo Find a page loading graphic If your a talented designer and want to make one yourself, by all means go right ahead. Add the Page Loader Div Add the below div right below the opening <body> tag. Add some CSS This ensures that the page loading image is centered on a near white background (change color as desired) and covers the entire screen. Scroll to top. 10 jQuery snippets every designer should know. jQuery is used on thousands upon thousands of web pages.

10 jQuery snippets every designer should know

It’s one of the most common libraries to insert into pages, and it makes DOM manipulation a snap. Of course, part of jQuery’s popularity is its simplicity. It seems we can do almost anything we like with this powerful library. For all the options open to us, there are some snippets we tend to come back to time and time again. Today I’d like to give you 10 snippets that everyone, newbies to gurus, will use time and time again. 1) Back to top button //Create an anchor tag<a class=”top” href=”#”>Back to top</a>

Plugins. JavaScript TreeGrid Control with Ajax Support - dhtmlxTreeGrid. DhtmlxTreeGrid is a cross-browser JavaScript treegrid component designed to represent and edit tabular data in a hierarchical view.

JavaScript TreeGrid Control with Ajax Support - dhtmlxTreeGrid

It is based on dhtmlxGrid PRO and combines treeview and editable datagrid. A rich JavaScript API brings great flexibility to dhtmlxTreeGrid, allowing you to create completely customizable, Ajax-based treetables with expandable rows. Advanced data entry capabilities make the treegrid more interactive and let users enter and edit table data in an intuitive way.

Live demo Themes: DHX Sky Blue DHX Blue Modern Gray. 10 Ways to Instantly Increase Your jQuery Performance. This article will present ten easy steps that will instantly improve your script's performance.

10 Ways to Instantly Increase Your jQuery Performance

Don't worry; there isn't anything too difficult here. Everyone can apply these methods! When you're finished reading, please let us know your speed tips. JavaScript and CSS Spinners with spin.js. I think it's safe to say the days of using images to provide the "small touches" are over.

JavaScript and CSS Spinners with spin.js

We can now safely create gradients, drop shadows, rounded corners, and scaled, rotated, transformed animations. It seems we've now moved on to replacing more complex effects, like spinner images. A great project called spin.js has surfaced, allowing developers to create CSS-powered spinners where keyframes are available, and uses VML as a fallback for Internet Explorer. spin.js is very customizable and is built with pure JavaScript so that no toolkit is required (though a jQuery plugin is available within the site demo). Let's have a look at how to use and customize spin.js! I promised above that spin.js allows for very customizable spinners and I wasn't lying; spin.js allows you to customize a spinner's number of lines, length, width, line radius, trail, spin speed, shadow, and color. AngularJs+SailsJs+mongoDb Our new Favorite combo in web development. jQuery remove bootstrap alert after certain amount of time. jQuery Performance Rules.

Once upon a time, all we needed to worry about was reducing Bytes and Requests and playing around with load order to make things faster.

jQuery Performance Rules

Nowadays, we are increasingly impacting one more major component in performance – CPU utilization. Using jQuery and other frameworks that make selecting nodes and DOM manipulation easy can have adverse affects if you’re not careful and follow some simple practices for reducing the work the browser has to do. 1. Always Descend From an #id The fastest selector in jQuery is the ID selector ($('#someid')). Selecting Single Elements. Writing a Javascript REST client. Last month I published an article on writing RESTful web services in Python, in which I developed a small web service.

Writing a Javascript REST client

Today I'm putting my "front-end" hat to show you how to write a Javascript client application that uses the Python service. Source code for this tutorial. Plugins. Valum's File-Uploader v2.0 by Valums-File-Uploader. Zip.js. A JavaScript library to zip and unzip files zip.js provides a low-level API for writing and reading large zip files (up to 4GB with File writer API).

zip.js

Zip-fs.js provides a high-level filesystem API. This library depends on Typed array (WebGL) and these APIs optionally: Compatibility This library works fully with Chrome, Firefox, Safari 6 and Internet Explorer 10. Dropzone.js. jQuery File Upload Demo.