Quantas vezes já vos aconteceu actualizarem constantemente os ficheiros CSS’s de determinado projecto, adicionando novas classes, removendo outras, comentando mais algumas, etc… How many times have you happened constantly update the files of the project's CSS, adding new classes, removing other, commenting on some more, etc ...
E depois existem também as alterações no HTML, um userControl que já não é necessário, o footer que agora tem outro estilo, etc… And then there are also changes in HTML, a UserControl that is no longer necessary, the footer that now has another style, etc ...
Todas estas alterações típicas de um projecto dinâmico, deixam-nos a certa altura sem saber quais as CSS’s que estão a ser utilizadas. All these changes typical of a dynamic project, leave us at one time without knowing what's the CSS that are being used. Para reduzirmos o tamanho destes ficheiros e aumentarmos a performance do site, convém remover estas classes que não estão a ser usadas. To reduce the size of these files and increase the performance of the site, it should remove these classes that are not being used.
O SitePoint , consciente deste problema, decidiu criar uma extensão para o FireFox, que nos permite analisar quais as CSS’s que não estão a ser utilizadas no site que estamos a visualizar no browser. The SitePoint, aware of this problem, decided to create an extension for Firefox, which allows us to consider what's the CSS that are not being used on the site that we see in the browser. Esta extensão permite efectuar um scanning em todo o site, pois uma classe pode não estar a ser usada numa página mas estar a ser usada noutra. This extension allows a scanning throughout the site, as a class can not be used on a page but is being used elsewhere.
Para fazerem download desta extensão, naveguem até à página: To make download this extension, sailing to the page:
http://www.sitepoint.com/dustmeselectors/ http://www.sitepoint.com/dustmeselectors/
Basta instalar a extensão no firefox e começar a analisar os sites desejados. Just install the extension on firefox and start to analyze the sites you want. ![]()


Últimos Comentários Last comments