Tuesday, September 30, 2008

How-To : Speed up your site (part 1)

The time it takes for a page to load can make a big impact to costumers. The longer it takes to load, the higher your bounce rate will be. Here are some of the tricks I’ve picked up to help speed up that loading time for customers.

Build HTML on the client’s computer


What I mean by this is you use javascript to actually build the website. Only send the minimal amount of data in your html file itself. The rest should exist in a .js file that the user can cache and reuse to build your sites. For example, say you are building this table

UsernameAddressPhone number
gtucker123 Fake Street915-555-1234


if you were to use simple html and had 100 rows, the user would have to download 3,700 characters (each row adding 37 characters), plus any data in the actual table. If you were to make a .js file like this :


function buildTable(rows){
var html = [];
html.push('<table><tr><th>Username</th><th>Address</th><th>Phone number</th><tr>');

for(var i = 0; i < rows.length; i++){
html.push('<tr>');
for(var j = 0; j < rows[i].length; j++){
html.push('<td>');
html.push(rows[i][j]);
html.push('</td>');
}
html.push('</tr>');
}
html.push('</table>');

document.getElementById('myElement').innerHTML = html.join('');
}


Then in your html file call the function like this:


buildTable([
['Gordon Tucker','123 Fake Street','915-555-1234'],
['Gordon Tucker','123 Fake Street','915-555-1234'],
['Gordon Tucker','123 Fake Street','915-555-1234'],
['Gordon Tucker','123 Fake Street','915-555-1234']
]);


It suddenly becomes a lot more scalable. For 100 rows, it will be 1,100 characters (11 for each row). I'm ignoring the javascript file for now, since there are plenty of optimization techniques to make it smaller.

You might say, whats the big deal between 1,100 characters and 3,700 characters, both are tiny amounts. The difference is in scale (think of having 2000 rows of data...) Also remember that the more complex the HTML is going to be, the bigger the improvement you will see with this technique. Remember, no matter how much html you want to use, the data a user would have to download would stay relatively small.

May not seem like a ton, but techniques like this combined with others can dramatically improve your site's speed.

Hope this helps someone out there.

I'll try to get an example page up on Our site soon.

Monday, August 25, 2008

New Site

We have finished our new website! The beta site has gone live and is better than ever, but we are still working hard to make Avante Web Design even better! We are working on new features for our clients to track projects, request updates, and send feedback. We will keep you posted on our progress.

Monday, July 14, 2008

Beta Site!

After many months of testing and designing, we are finally ready to release the beta version of our new site! Please feel free to look around and let us know if you have any ideas or suggestions for our new site. The site is located at beta.avantwebdesign.com

Thank you!

Friday, February 8, 2008

Developing for iPhone

Avante Web Design is now developing mobile versions for every new site they design and develop. We will take your website to more people through our mobile sites design and development included with every new site.

Monday, December 24, 2007

Happy Holidays!

Happy Holidays from all of us at Avante Web Design! We hope that everyone is enjoying the winter. We at still busy preparing for the release of our Google Android project. More details will be coming soon!

Saturday, December 22, 2007

Android Project

We have officially started developing projects for the new Google Android platform. Using customized cell phone OS software, tied into websites, we can take websites into to the next level. We will soon be posting more details on these projects.

Friday, December 21, 2007

Avante Web Design

My name is Gordon Tucker, and I'm creating this new blog for developers at Avante Web Design. Avante was founded my my brother and I and we are having a blast creating websites and web applications. Our portfolio is growing quickly and I think we could be the next google! Ok, that might be a bit ambitious...

I will use this blog to let people know of updates to our products and scripts. I personally like to create fun javascript effects (using mootools 1.1 right now). I only have a few that I've created including a calendar and a css style shifter (it will rotate an array of elements through their classes.). Any recommendations to enhance my scripts are welcome, especially ones that tell me how to improve efficiency.

Examples of the mentioned scripts can be seen here, and at our Home Page.