I find it a good typographic practice to make footnotes immediately follow the text on closing pages of chapters or sections, where much of the page may be blank rather than filled with text.
In the attached picture this is done in B, as opposed to the more common attitude of leaving the notes at the foot of the page, as in A. Note that the footnote in B is following from the preceding page. Of course, the spacing between text and notes on end pages should be consistent with that set for the rest of the document.
How do I get LaTeX typeset footnotes in such a way (B)?
Edit. The solution should work in every documentclass, but specifically in books; it should not affect footnotes behaviour globally.
Also, could it be possible to implement it so that if less than an a certain quantity (that may be measured in cm, em, or percentage of available space) of the page spage is blank, then the spacing is the default one?