1) $(".mdl-layout") no me funcionó. Usé el nombre de la clase completa:
$(".mdl-layout__content")
2) Las condiciones del scroll no se cumplían ya que $(".mdl-layout__content") mide 466.67 y el $(document) mide 692. Hice unos arreglos medio extraños.
Espero le sirva a alguien. Aquí va mi código:
$(".mdl-layout__content").scroll -> scrollPosition = $(".mdl-layout__content").scrollTop() + 225.33 #Mide 466.67 scrollHeight = $(document).height() - 100 #Mide 692 if !window.loading && scrollPosition > scrollHeight console.log("Cargando...") window.loading = true url = $(".next_page").attr("href") $.getScript url if url