Sign in
Log inSign up

How can we do SEO on content generated with javascript ?

Venkatesh Bishu's photo
Venkatesh Bishu
·Jun 17, 2019

I have a web page which is loaded by javascript. Frontend page is based on JS templating engine. I generate my content via javascript instead of PHP.

I generate my contents in following ways

  1. I store the content in javascript variable as an object ; Like: var content = {title: 'Some demo title', 'h1' : 'Some demo heading', 'content' : '....'}

after page loading

$(document).ready(function(){ // generate content load_content(content); });

I have no idea what will be the effect of SEO on this page. Please help me to generate a content by javascript which is SEO friendly

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct