Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Code that runs when an object is fully loaded

Abierto
#233 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
20/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
javascript, jquery
Área
frontend

Línea de trabajo

The issue names no repository files, tests, or entry points. Start by reproducing the dynamically inserted object and its jQuery load-listener setup, then define the expected completion behavior before identifying a suitable change and verification approach.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Let's say divSomeObject could be too large to fit in a rectangle that has been allocated for it.

It could have an image in it, so when the object is first created, we have no way of knowing whether or not the contents will fit in the box.

So let's have some code run when the object if fully loaded, using jQuery.

$(divSomeObject).on ("load", function () {
   runSomeCode ();
   });

But this isn't happening.

I've read all I can find on the web about this, but they seem to be concerned with objects that load when the page loads. There's no requirement that this happen at page-load time. Sometimes the objects appear dynamically while the app is running.

I've made sure the object is inserted in the DOM when we set up the listener for the "load" event.

Any suggestions welcome.

Lenguaje dominante
HTML
Estrellas
134
Forks
10
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de scripting/Scripting-News

Todos los issues de scripting/Scripting-News

Issues similares

Más issues de Web Dev

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.