Ver Mensaje Individual
  #4 (permalink)  
Antiguo 27/07/2010, 18:28
Avatar de stock
stock
 
Fecha de Ingreso: junio-2004
Ubicación: Monterrey NL
Mensajes: 2.390
Antigüedad: 19 años, 10 meses
Puntos: 53
Respuesta: ejecucion diferente javascript en <head> o en <body>

Si esta escrito correctamente no debería haber diferencia, si no has definido un listener para el evento "load" o mejor aún, cuando el DOM este listo, entonces si habrá diferencia ya que si importas tu script en el head, todavía no existirá el DOM que posiblemente necesite usar.

Como te dije al principio, no debería haber diferencia, si la hay es porque el código necesita ser revisado

Saludos