Modal windows – are they always necessary?

27 November 2013 | Category: Browsers, General | Comments (0)

I do not want to write about “what is modal windows”, but focus on potential problems which may occur when you start using modal windows in some scena[……]

Read more

JS Tip: How to check if specified HTML element is supported by the browser

11 November 2013 | Category: Browsers, JavaScript | Comments (0)

To check if browser support specified HTML element you can use:

function isHTMLElementSupported(elm) {
    return (Object.prototype.toString.call([......]

Read more

How to check if browser supports cookies using client-side technique

29 September 2013 | Category: Browsers, JavaScript | Comments (0)

Introduction

There is at least (which I know) two methods to find out if cookies are enabled or not. You can use client-side script techniques or s[……]

Read more

Simple technique to preload images at specified moment

20 August 2013 | Category: Browsers, Optimizing | Comments (2)

There are many ways to preload images, including methods that rely on CSS, JavaScript, and various combinations thereof. Here I would like to present[……]

Read more

JS tip: always use full reference

17 August 2013 | Category: Browsers, JavaScript, Optimizing | Comments (0)

Let’s say we have an example of code like this:

(function(){

    function close_window() {
        if (typeof self.close === 'function') {[......]

Read more

CSS: provide a unit for zero lengths

8 July 2013 | Category: Browsers, CSS, Tools | Comments (0)

Zero lengths do not need unit. However, there is some significant benefits of using unit with zero lengths while developing code.

See real unit and[……]

Read more

Expires header for fonts do not working

2 July 2013 | Category: Browsers, Optimizing, Server Side | Comments (0)

If you specify Expires header with future date then you may expect that specified fonts (I use woff, ttf, otf and eot) will be cached in browser local[……]

Read more

To cache or not to cache “length” property

26 June 2013 | Category: Browsers, Optimizing | Comments (0)

I asked Thomas Lahn on comp.lang.javascript newsgroup about caching “length” property:

According to discussion here http://stackoverflow.com/questi[……]

Read more

Accessibility Tip: ARIA role button

18 June 2013 | Category: Accessibility, Browsers | Comments (2)

If you do your element clickable then add attribute role="button" to tell screen reader that the element is a button. This is useful especially for el[……]

Read more

Don’t forget about “Expires” header

20 April 2013 | Category: Browsers, Optimizing | Comments (0)

Why use Expires header?

Expires header tell the browser whether a resource needs to be requested from the source (server), or if it can be fetched[……]

Read more

« go backkeep looking »