Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

153
Views
Cómo hacer una descarga diferida con contenido limitado

Necesito ayuda en este asunto. Ahora estoy estudiando carga diferida. Y el desplazamiento interminable resultó estar hecho. Y, en general, el código funciona, el contenido da. Pero no sé cómo rehacerlo para que revele 10 elementos de, digamos, div que están en camino a la URL, y si terminaran allí, dejaría de sumergir el contenido de estos div. Parece contar, pero no entiendo qué hacer con él. Tal vez había un tema similar, pero no encontré algo.

 function loadPageAjax(getSectionNumbers) { $.ajax({ url: "lazy-page.html", type: "GET", data: { getSectionNumbers: getSectionNumbers }, onSubmit: function ajaxViewsLoader() { $(".loading-icon").fadeIn(); }, success: function ajaxViewsSection(data) { $(".loading-icon").fadeOut(); // Здесь мы получаем данные, отправленные сервером и выводим $(".load-wrapp").append(data); sectionNumber++; console.log(getSectionNumbers); } }); getHeightContent = $(".load-wrapp").outerHeight(); } $(window).scroll(function () { if ($(this).scrollTop() >= getHeightContent - 5) { loadPageAjax(sectionNumber); } });
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!