WordPress the_content Page Load

I solved the issue. Basically, in my code I was storing the data after getting the html, so I just moved the storing code above where I get the html and it worked ..