$.ajax({
url: 'my.php',
type: 'POST',
dataType: 'json',
success: (data) => {
$('.top-section').after().append(data.html);
}
});
ob_start();
include 'hello.html';
$view = ob_get_clean();
ob_end_flush();
echo json_encode([
'html' => $view
]);
insertHtml('#target_block', '/hello.html')
$('.top-section').load('hello.html');