lowest price herbal viagra

just another regularban.info web blog

MEMBERS:

Your CSS Code is Slowing Down Your Website - How To Optimize for Speed

Did you know that your css code could be slowing down your website? Did you also know that there is a free solution out there that can help you optimize or reformat your css code for speed and readability? This article is going to explain the benefits of optimizing your css code and the reasons why all web designers should be doing it. First we need to take into account the 2 reasons why you would want to reformat your css: readability and optimization.

Readability

Having nicely formatted css that easily readable is very helpful when you are developing a site. Most of us (me included) can get pretty sloppy when in a hurry to develop code, and a formatter can really help out to make it more readable.

On development teams where both Macs and PCs are used, sometimes line breaks are not read correctly across platforms and your css can end up all on one line. A formatter can help get your code looking pretty again.

Optimization

The opposite of readability is optimization. One problem with CSS is that it can get pretty file-size heavy when designing with it - especially on complex layouts. Optimizing your CSS will strip out all unnecessary characters and leave your CSS lean and mean.

Optimizing css is great to do once you've finished your site and don't plan to work on the design very much anymore.

The css formatter is a great tool because it can do both! You can format for readability while you are designing, optimize when you go live, and reformat it for readability if you ever need to work on it again. It's really a 'win win' thing to do.

Do you want to speed up your website? Format your css for free using the CSS Formatter and Optimizer...

DEVTRENCH is a Web Development Blog written for web designers and programmers who need need up to date tips and tricks on how to create great websites.

 


Web Development - How To Make The Most Of Ajax

The greatest breakthrough of the Web 2.0 age is the advances made in web page coding. Previously, an interactive web page would require you to click on the control to trigger the action, then the request would be sent to the web pages server, and you were stuck waiting for the page to reload. This is an inconvenience on your part, as you are stuck waiting. Similarly, if you are the owner of the webpage, it is an inconvenience to your users to have to wait. Furthermore, if you are offering your services or products, you are losing potential customers and gaining downtime on your webpage.

But AJAX, which stands for Asynchronous JavaScript and XML, is a new type of web coding technology which allows you to create an interactive website that does not need to reload and communicate with the server every time an action is taken. For you as a web page owner, this means faster loading times for your customers, as well as more interaction with the page on the end users' side.

AJAX uses a combination of Java, XML, HTML, and CSS coding, all rolled into one to create a unique and interactive web pages.

Are you wondering where AJAX has been employed on the Web? Ever used Google Maps? Google Maps allows you to drag the map, zoom in and out, as well as set markers on the map without the need to bee constantly interacting with Google's server.

If you want to create a unique and interactive webpage with less loading time, allowing your members to view more in less time, AJAX coding is the way to go.

Fabian Tan is the author of the free 51-Page Report:

"Murder Your Job: How To Build Cash Sucking Autopilot Businesses In 30 Days Or Less!"

Head over to http://www.MurderYourJob.com to get your free copy now before it's gone!

 


Using Perl To Convert Hyperlinks And Filenames To Lowercase

Like a lot of web developers, I'm not always that disciplined when it comes to the file naming convention I use and I sometimes end up with a situation whereby I have some files that are in lowercase, some that begin with a capital, and some that are a bit of a mixture.

One web site I maintain contains about 2000 web pages and has about 20,000 hyperlinks. As you can imagine, I had one of those sinking feelings when I was told that in order to migrate the web site to a new content management system, all the file names and hyperlinks would need to be changed to lowercase.

Whenever I am presented with a problem like this, my instinct is always to write a Perl script using one or more regular expressions to solve the problem. This particular situation was no exception.

Change a string to lowercase

The following regular expression changes all the characters in a string to lowercase. The first part of the regular expression finds a hyperlink, and the second part converts the string. (Just in case this article is not displayed correctly, there should be a single backslash in front of the 'L$1').

1. $line =~ s/<a href="(.*?)"/<a href="L$1"/gs;

Change a filename to lowercase

Likewise, changing a filename itself is very simple. The following two lines perform the task quite nicely:

1. use File::Copy; 2. move ("$name", "L$name");

(Again, there should be a single backslash in front of the 'L$name'.)

If you need more information on how to incorporate the above code snippets into a complete script, feel free to contact me directly.

About the Author: John Dixon is a freelance web developer working for My Health Questions Matter, a company that helps users of the health service to ask the right questions in their dealings with health professionals.

John is also interested in computer history and maintains a Computer History web site.

Through his own company John Dixon Technology Ltd, John does web development work for various companies.

 


Pages 
* About

Archives
    * February 2008
    * January 2008

Categories:
* Uncategorized

Last Updated:

regularban.info is proudly powered by WordPress MU running on  regularban.info.
Create a new blog and join in the fun!
Entries (RSS) and Comments (RSS).