think is what you need is a function refresh div tickets, which will just refresh the content rather than have the entire page re-loading.
i`m using it in some parts of my systems
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script>
// Function to update the div content
function updateContent() {
// Generate new content
const newContent = \`<p>Tickets fetched at ${new Date().toLocaleTimeString()}</p>\`;
// Update the div with the new content
$('#contentDiv').html(newContent);
}
// Call the updateContent function every 60 seconds
setInterval(updateContent, 60000); // 60000 milliseconds = 60 seconds
// Optionally, call the function once immediately to load initial content
$(document).ready(function() {
updateContent();
});
</script>
<div id="contentDiv">
tickets section here
</div>
feel free and give it a try