`
let description=IMG?el.querySelector("description").textContent.split('')[1]:el.querySelector("description").textContent;const parser=new DOMParser();const shortDisc=parser.parseFromString(description,'text/html').querySelector('p').innerHTML;html+=`
${imgTag}
Posted in ${categories}
${shortDisc}
`;});document.querySelector('#blog_feeds').innerHTML=html;});};if('IntersectionObserver'in window){let observer=new IntersectionObserver((entries,observer)=>{entries.forEach(entry=>{if(entry.isIntersecting){fetchBlogs();observer.unobserve(entry.target);}});},{threshold:0});let blogsSection=document.querySelector('#blogsSection');observer.observe(blogsSection);}else{fetchBlogs();};