I have a site deployed on Galaxy and just recently came across the instructions about SEO. Of course I immediately added the mdg:seo package to my project, redeployed, and voila pages are being rendered server-side.
<script> tag to pull in app logic? How can I troubleshoot what is going on?
So I just read through the prerender docs and the removal of script tags is actually a feature.
The only thing that works are
Can anybody enlighten me on this?
It’s for SEO like the name of the package suggests. I don’t think the pre-rendered HTML is served to normal clients at all (feel free to correct me if I’m wrong).
Correct, it isn’t sent to normal clients. But thanks for the response, because I suddenly had the epiphany that this is only so search engines can index the content, and for that they don’t need modals to popup, etc.
Ultimately I should have just spelled out what SEO means …
I had come across such a realization too when I started doing SEO for my app. Maybe the documentation should be more explicit in stating that the output is not for normal human users.
You’re right with your comment. Prerender.io only prepares your content when bots like Googlebot…comes knocking, and the content is not served to real users, only bots - that’s the was left for bots to follow to other contents.