TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

3 点作者 etattva超过 6 年前
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 条评论

romanovcode超过 6 年前
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.
xcubic超过 6 年前
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.
etattva超过 6 年前
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.
quantummkv超过 6 年前
If you want to keep your SEO ranks without SSR, ditch any client side rendering framework and go back to blade templates.
评论 #18302464 未加载
steve_taylor超过 6 年前
&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>
antoineMoPa超过 6 年前
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 未加载
codegeek超过 6 年前
Do the routing through laravel and then in the blade template, just pass the data along in a vue component.
TigerHimself超过 6 年前
SPA and SEO are not compatible. SPA is good for apps, backends, admins ...
评论 #18313639 未加载
stefkors超过 6 年前
Perhaps setting up nuxt could work?