{"id":4998,"date":"2026-08-02T10:28:19","date_gmt":"2026-08-02T10:28:19","guid":{"rendered":"https:\/\/lumeamara.online\/?p=4998"},"modified":"2026-08-02T10:28:22","modified_gmt":"2026-08-02T10:28:22","slug":"heat-is-putting-rural-pregnancies-at-greater-risk-in-tamil-nadu-study-finds","status":"publish","type":"post","link":"https:\/\/lumeamara.online\/?p=4998","title":{"rendered":"Heat is putting rural pregnancies at greater risk in Tamil Nadu, study finds"},"content":{"rendered":"<p>`;<br \/>\n                    });<br \/>\n                } else {<br \/>\n                    authorsHTML = &#8220;;<br \/>\n                }<\/p>\n<p>                \/\/ Additional content<br \/>\n                let additionalContent = `<\/p>\n<p>                    `;<\/p>\n<p>                \/\/ Append new article with additional content<br \/>\n               $(&#8216;#articles-container&#8217;).append(`<br \/>\n    ${response.data.title}<\/p>\n<p>${response.data.meta_description}<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/thesouthfirst.com\/tamilnadu\/heat-is-is-putting-rural-pregnancies-at-greater-risk-in-tamil-nadu-study-finds\/%24response.data.image\" alt=\"${response.data.title}\">    <\/p>\n<p>${response.data.caption}<\/p>\n<p><a href=\"https:\/\/www.google.com\/preferences\/source?q=thesouthfirst\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/lumeamara.online\/wp-content\/uploads\/2026\/08\/google_40x40.png\" alt=\"Google\"><br \/>\n<strong>Make Us <a href=\"https:\/\/lumeamara.online\/?p=4761\" title=\"How wildfires impact your health\">Your<\/a> Preferred Source on Google<\/strong><\/a>${response.data.content}<\/p>\n<p>        ${additionalContent}<\/p>\n<p>`);<\/p>\n<p>                currentPostId = response.data.id;<br \/>\n                excludedPosts.push(currentPostId);<\/p>\n<p>                updateMetaTags(response.data);<br \/>\n            } else {<br \/>\n                console.log(&#8216;No more articles to load.&#8217;);<br \/>\n                $(window).off(&#8216;scroll&#8217;);<br \/>\n            }<br \/>\n        },<br \/>\n        error: function (xhr, status, error) {<br \/>\n            console.error(&#8216;AJAX error:&#8217;, error);<br \/>\n        },<br \/>\n        complete: function () {<br \/>\n            isLoading = false;<br \/>\n        },<br \/>\n    });<br \/>\n}<\/p>\n<p>    function fetchPreviousArticle(currentPostId) {<\/p>\n<p>        $.ajax({<br \/>\n            url: &#8216;\/wp-json\/custom\/v1\/previous-article&#8217;,<br \/>\n        type: &#8216;GET&#8217;,<br \/>\n        data: {<br \/>\n            post_id: currentPostId,<br \/>\n            category_id: categoryId,<br \/>\n         },<br \/>\n            success: function (response) {<br \/>\n                console.log(&#8216;AJAX response received:&#8217;, response);<\/p>\n<p>                if (response.success) {<br \/>\n                    $(&#8216;#articles-container&#8217;).prepend(`<\/p>\n<h2>${response.data.title}<\/h2>\n<p>${response.data.content}<\/p>\n<p>                    `);<br \/>\n                    currentPostId = response.data.id;<br \/>\n                } else {<br \/>\n                    console.log(&#8216;No previous articles to load.&#8217;);<br \/>\n                    $(window).off(&#8216;scroll&#8217;); \/\/ Stop further loading<br \/>\n                }<br \/>\n            },<br \/>\n            error: function (xhr, status, error) {<br \/>\n                console.error(&#8216;AJAX error:&#8217;, error);<br \/>\n            },<br \/>\n            complete: function () {<br \/>\n                isLoading = false;<br \/>\n            },<br \/>\n        });<br \/>\n    }<\/p>\n<p>    \/\/ Trigger fetch on scroll<br \/>\n    let lastScrollTop = 0;<br \/>\n    $(window).on(&#8216;scroll&#8217;, function () {<br \/>\n        let scrollTop = $(window).scrollTop();<br \/>\n        let scrollHeight = $(document).height();<br \/>\n        let windowHeight = $(window).height();<\/p>\n<p>        \/\/ Scroll down: Trigger fetch when reaching the bottom (or near the bottom)<br \/>\n        if (scrollTop + windowHeight &gt;= scrollHeight &#8211; 900) {<br \/>\n             fetchNextArticle();<br \/>\n        }<br \/>\n   });<\/p>\n<p>});<\/p>\n<p>var lastScrollTop = $(window).scrollTop(); \/\/ Store initial scroll position<\/p>\n<p>$(window).on(&#8220;scroll&#8221;, function () {<br \/>\n    var currentScrollTop = $(window).scrollTop();<\/p>\n<p>    if (currentScrollTop = divTop &amp;&amp; scrollPos &#8216;);<br \/>\n}<\/p>\n<p>\/\/ Update the document title<br \/>\ndocument.title = decodedTitle; \/\/ This updates the page title shown in the browser&#8217;s tab<\/p>\n<p>\/\/ Check if meta description exists, and update it<br \/>\nvar metaDescription = $(&#8220;meta[name=&#8217;description&#8217;]&#8221;);<\/p>\n<p>if (metaDescription.length) {<br \/>\n    metaDescription.attr(&#8220;content&#8221;, newDescription); \/\/ Update the existing meta description<br \/>\n} else {<br \/>\n    \/\/ If meta description doesn&#8217;t exist, create it and append to the  section<br \/>\n    $(&#8220;head&#8221;).append(&#8221;);<br \/>\n}<\/p>\n<p>\/\/ Similarly, if you want to dynamically set the canonical URL as well<br \/>\nvar newCanonicalUrl =  data.canonical_url;<\/p>\n<p>\/\/ Check if the canonical link exists<br \/>\nvar canonicalLink = $(&#8220;link[rel=&#8217;canonical&#8217;]&#8221;);<\/p>\n<p>if (canonicalLink.length) {<br \/>\n    canonicalLink.attr(&#8220;href&#8221;, newCanonicalUrl); \/\/ Update the existing canonical URL<br \/>\n} else {<br \/>\n    \/\/ If canonical link doesn&#8217;t exist, create it and append to the<br \/>\n    $(&#8220;head&#8221;).append(&#8221;);<br \/>\n}<\/p>\n<p>\/\/ Update keywords (if any)<br \/>\nif (data.keywords) {<br \/>\n    let keywordsMeta = $(&#8220;meta[name=&#8217;keywords&#8217;]&#8221;);<br \/>\n    if (keywordsMeta.length) {<br \/>\n        keywordsMeta.attr(&#8220;content&#8221;, data.keywords);<br \/>\n    } else {<br \/>\n        $(&#8220;head&#8221;).append(&#8221;);<br \/>\n    }<br \/>\n}<\/p>\n<p>history.pushState(null, decodedTitle, data.link);<br \/>\ngtag(&#8216;config&#8217;, &#8216;G-2EJFH5VVDZ&#8217;, {<br \/>\n            &#8216;page_title&#8217;: decodedTitle,<br \/>\n            &#8216;page_path&#8217;: data.link<br \/>\n        });<\/p>\n<p>        } else {<br \/>\n            console.log(&#8216;No more articles to load.&#8217;);<br \/>\n            $(window).off(&#8216;scroll&#8217;); \/\/ Stop further loading<br \/>\n        }<br \/>\n    },<br \/>\n    error: function (xhr, status, error) {<br \/>\n        console.error(&#8216;AJAX error:&#8217;, error);<br \/>\n    },<br \/>\n    complete: function () {<br \/>\n        isLoading = false;<br \/>\n    },<br \/>\n});<\/p>\n<p>}<\/p>\n<p>\ufeff<\/p>\n","protected":false},"excerpt":{"rendered":"<p>`; }); } else { authorsHTML = &#8220;; } \/\/ Additional content let additionalContent = ` `; \/\/ Append new article with additional content $(&#8216;#articles-container&#8217;).append(` ${response.data.title}<\/p>\n","protected":false},"author":1,"featured_media":5001,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[611,124,610,609,39],"class_list":["post-4998","post","type-post","status-publish","format-standard","has-post-thumbnail","category-pregnancy","tag-greater","tag-heat","tag-pregnancies","tag-putting","tag-rural"],"_links":{"self":[{"href":"https:\/\/lumeamara.online\/index.php?rest_route=\/wp\/v2\/posts\/4998","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lumeamara.online\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lumeamara.online\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lumeamara.online\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lumeamara.online\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4998"}],"version-history":[{"count":1,"href":"https:\/\/lumeamara.online\/index.php?rest_route=\/wp\/v2\/posts\/4998\/revisions"}],"predecessor-version":[{"id":5000,"href":"https:\/\/lumeamara.online\/index.php?rest_route=\/wp\/v2\/posts\/4998\/revisions\/5000"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lumeamara.online\/index.php?rest_route=\/wp\/v2\/media\/5001"}],"wp:attachment":[{"href":"https:\/\/lumeamara.online\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4998"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lumeamara.online\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4998"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lumeamara.online\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4998"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}