Optimizing

Web Tuning for Performance

It’s my goal to have fast loading website for my customers and it’s always be my pleasure to do it the tuning. Since morning I tried to looking for the best way to put separate files for images, JavaScript and… Baca selengkapnya Web Tuning for Performance

Apache/.htaccess: Specify a Vary: Accept-Encoding header

I guess it’s meant that you enable gzip compression for your css and js files, because that will enable the client to receive both gzip-encoded content and a plain content. This is how to do it in apache2: <IfModule mod_deflate.c>… Baca selengkapnya Apache/.htaccess: Specify a Vary: Accept-Encoding header

WordPress: Remove query strings from static resources

This is normal code for remove query strings from static resources. Add the code below to your function.php. function _remove_script_version( $src ){ $parts = explode( ‘?’, $src ); return $parts[0]; } add_filter( ‘script_loader_src’, ‘_remove_script_version’, 15, 1 ); add_filter( ‘style_loader_src’, ‘_remove_script_version’,… Baca selengkapnya WordPress: Remove query strings from static resources

Enable gzip compression

Compressing the static contents with [highlight color=”orange”]enable gZip compression[/highlight] will drastically change your site loading time. Its a good practice for general web development too. You just need to place below code in your [highlight color=”salmon”]htaccess[/highlight] file: <IfModule mod_deflate.c> #… Baca selengkapnya Enable gzip compression

Add Expires Headers

Setting the expire header to far future date will instruct your web browser to cache and serve those cached content until that expire date. You can [highlight color=”salmon”]add expires headers[/highlight] using some easy edits to your [highlight color=”orange”].htaccess[/highlight] file. <IfModule… Baca selengkapnya Add Expires Headers

Optimize Web Sites

Ternyata gampang-gampang susah tuk optimize web sites untuk mendapat score A di GTmetrix.

Scroll to Top