Tag Archive for web dev

Internet Explorer style limit

Today I discovered something amazing and nasty at the same time, the page looked good in any other browser but it didn’t rendered in any version of IE (9, 8, 7). After taking a look at the network traffic I discovered one of the style pages was not loaded (IE never did the proper request to the server asking for the css file). That sounds weird… I looked at the source code and the correct <link> sentence was there, then looked at the HTML structure in the IE developer tools, bam! the link was not processed.

After some research in the internet I found something amazingly nasty: Internet Explorer cannot handle more than 31 <style> sentences in a page. This applies to every version of IE (Internet Explorer 10 fixes this issue and won’t be a problem any more). This applies even with the combination of <link rel=”stylesheet” /> and <style> tags in the same page. This article by Microsoft explains that there is not only a limit for the styles defined but the rules (the article says that you cannot apply more than 4095 rules to a webpage in IE).

I found a nice blog post by John Albin (Drupal Evangelist) about the issue and looks that even using the ugly @import rule you would be limited to 993 stylesheets in the same page for Internet Explorer, ugly.

How to solve this issue? well, the easy way is simplifying your styles and using a style minizer and compressor (like the Bundler or SquishIt for ASP.NET). Lesson learned: “don’t abuse of your stylesheets”.

Proxima VAN, HTML5 para los no iniciados y curiosos

Este sabado 17 de diciembre tendre el placer de compartir con la comunidad de Alt.Net Hispano el codiciado tema “HTML5 para los no iniciados”, si, eso que esta sonando por todos lados acerca de HTML5, que tan raro es? como se come? me curara la caries? Tantas preguntas, tanto material.

HTML5 es muchisimo mas que un estandar, mucho mas que un simple buzz, va bastante mas alla de un simple lenguaje de markup. Tratare de explicar HTML5 desde el punto de vista de un desarrollador web, especialmente que implica para un developer de ASP.NET.

El evento pueden encontrarlo en el link de Google Calendar, no olviden hacer la transformacion en su huso horario.

VAN en Alt.Net Hispano–ASP.NET 4.5 y Visual Studio vNext

VAN ASP.NET MVC3 y Razor en Alt.Net Hispano

Hoy tube el placer de compartir con mis camaradas “alt.netters” de Alt.Net Hispano en la VAN titulada “Webmatrix, Razor, MVC3 y otras hierbas”. Interesante la discusión y comentarios post VAN. Pronto publicaran los videos de la VAN para verlos offline, mientras tanto los dejo con las diapositivas :)

Diapositiva en Slideshare.net

NOTA: El código de mi ejemplo de Windsor Service Locator para MVC 3 pueden encontrarlo en mi cuenta de Bitbucket http://bitbucket.org/cprieto/castle-windsor-mvc

PHP y Microsoft como plataforma

Hace unas semanas fui invitado por parte de Microsoft a conversar un poco en el DrupalCamp 2010 que se realizó en Guatemala, quizás muchos no lo saben pero en “una vida pasada” fui developer en PHP por mucho tiempo (ufff… tiempos aquellos). Bien, fue interesante regresar a hablar sobre el soporte en que ahora ha trabajado Microsoft en su “stack” junto con PHP, transformando a Microsoft Windows no solamente en una excelente plataforma de desarrollo para PHP, sino también en una fuerte plataforma de ejecución.

Como lo había prometido (pero un poco tarde esta vez) los dejo con las diapositivas de la charla, quizás algún otro día conversamos un poco más sobre PHP (si me diera tiempo claro).

Ver diapositiva en Slideshare.net