Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Code that runs when an object is fully loaded

Aperta
#233 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
20/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
javascript, jquery
Ambito
frontend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
HTML
Stelle
134
Fork
10
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di scripting/Scripting-News

Tutte le issue di scripting/Scripting-News

Issue simili

Altre issue su Web Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.