TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Used vue.js with laravel and my site is not SEO friendly anymore

3 pointsby etattvaover 6 years ago
I implemented vue.js on my site for pagination and filter. Now I realize that the page loads with filters and the data is fetched via AJAX. Do a view source and AJAX content is not displayed. This affects the site indexing and ability to rank. I do not want to go for SSR. What could be my options here? Should I ditch vue.js?

9 comments

romanovcodeover 6 years ago
You use SPA and then are surprised that it negatively impacts your SEO? What did you think would happen?<p>If you want good SEO ditch SPA. If you want SPA and SEO you must have both - client-side rendering and server-side rendering.
xcubicover 6 years ago
You can mix both! Depeneding on how you implemented vuejs, you can render the list on the server on a blade template and send it to the cliente. There, you let vue do the pagination&#x2F;filters&#x2F;etc.
etattvaover 6 years ago
With all these discussion, my question to this group is that should I stick with vue.js ? I was using data tables and developer advocated vue.js being much better and flexible, which I agree but then these SEO challenges. If I am on laravel framework, what options do I have to implement pagination and filter conditions in SEO friendly manner. I have seen some sites using Ajax but they change the url by incrementing a variable in the url.
quantummkvover 6 years ago
If you want to keep your SEO ranks without SSR, ditch any client side rendering framework and go back to blade templates.
评论 #18302464 未加载
steve_taylorover 6 years ago
&gt; I do not want to go for SSR.<p>SSR and SPA aren&#x27;t mutually exclusive. Vue.js supports the ability to server-side render and hydrate the HTML with your SPA once it has loaded. It&#x27;s the best of both worlds.<p><a href="https:&#x2F;&#x2F;ssr.vuejs.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;ssr.vuejs.org&#x2F;</a>
antoineMoPaover 6 years ago
I think that google now uses a headless browser. Unless your page loads in too much time, nothing should change on the SEO side if you have the same content at the same place.
评论 #18308569 未加载
评论 #18304446 未加载
codegeekover 6 years ago
Do the routing through laravel and then in the blade template, just pass the data along in a vue component.
TigerHimselfover 6 years ago
SPA and SEO are not compatible. SPA is good for apps, backends, admins ...
评论 #18313639 未加载
stefkorsover 6 years ago
Perhaps setting up nuxt could work?