Why does iOS want to get the height of webview content?

as detailed in the title: in my impression, iOS loads h5 content and loads an h5 page directly, and the final result is that the content displayed on a page is displayed directly on the h5 page, so why do you still need to get the height of h5 content? A friend asked me a question just now, but I don"t quite understand it. After reading this article https://www.jianshu.com/p/6bb., I still don"t quite understand. Please let me know.

Mar.24,2021

is likely to be the case of webview+ native components. In this case, you need to obtain the content height of webview
for example, a news details page. Except for the news page, the following comments are made natively, so this requirement

Menu