Blogroll

Tuesday, December 27, 2011

How to speed up your website ?

Minimize HTTP Requests

tag: content
80% of the end-user response time is spent on the front-end. Most of this time is tied up in downloading all the components in the page: images, stylesheets, scripts, Flash, etc. Reducing the number of components in turn reduces the number of HTTP requests required to render the page. This is the key to faster pages.
Friday, December 23, 2011

Detect load image when change image source

It's useful when you change image source such as photo slider, when you click thumbnail image, you can show the larger image.

Tuesday, December 20, 2011

Create multi background by css3

CSS3 allows web designers to specify multiple background images for box elements, using nothing more than a simple comma-separated list.
Tuesday, December 13, 2011

Detect ajax and render other view in zend

$request = $this->getRequest();
if ($request->isXmlHttpRequest()){
                  $this->_helper->layout()->disableLayout();
                    $this->_helper->viewRenderer('evencalendarajax');
                    //this->_helper->getHelper('viewRenderer')->setNoRender();
                }
1. get all request
 2. check request is ajax request.
3.Disable layout
4. Call another view if you want.
5. Disable view if you don't use view.