Code Speed Browser Htaccess Snippets


Example Apache .htaccess file to add access control header

This code is useful for multi environment setups (staging, production, etc.) it allows you to keep your htaccess files in sync while maintaining an htpasswd on your development environment or anything but the live environment.

22 February, 2012   

HTML Code to create a scrolling text by using the <marquee> tag.

Usually when you try to download something from a web server you get a request asking whether you want to save the file or open it. To avoid that you can use the below code on your .htaccess file

30 August, 2011   

This snippet to show how to use the Last-Modified and the ETag header to optimize the caching of a website. If used correctly this will speed up your page loads.

27 August, 2011   

The <noscript> tag is used to provide an alternate content for users that have disabled scripts in their browser or have a browser that doesn’t support client-side scripting. The noscript element can contain all the elements that you can find inside the body element of a normal HTML page. The content inside the noscript element will...

22 August, 2012   

This JavaScript code will enable you to display text within your status bar that is typed line by line.

26 May, 2012   

Helps to find out browser version and type your website visitor is using

Normally index.html or index.php is the default page a server serves up when visiting a directory without specifying a file name. You can change this with .htaccess:

Example htaccess snippets to remove File Extention from URLs

29 August, 2011   

An example of Cross-Browser Min Height

jQuery example code to add image to browser cache

27 August, 2011   

The <frame> tag defines one particular window (frame) within a frameset. In the example below we have a frameset with two columns. The first column is set to 25% of the width of the browser window. The second column is set to 75% of the width of the browser window. The document "frame_a.htm" is put into the first column, and...

12 February, 2015   

JS sniffer detects browser and OS.

Optimize your website loading time by compressing files into smaller size.

02 August, 2014   

JavaScript code to detects browser and OS

08 October, 2014   

JavaScript code to detect browser and OS.

Example shown here how to preload the images with jquery in WordPress.

22 January, 2011   

This will work in any browser on any element, to support styling changes on hover.

05 December, 2013   

AppleScript to send URL from Mac browser to Prowl (iOS)