AMZ123跨境卖家导航
拖动LOGO到书签栏,立即收藏AMZ123
首页跨境头条文章详情

JavaScript SEO怎么做

2581
2020-08-06 10:10
2020-08-06 10:10
2581

Hi. I’m Charles from Cross Border Digital. Are you using JavaScript to build your website? Or maybe you're thinking about using one of the modern JavaScript frameworks like Ember,or Node, or React, or Angular. Great frameworks for building very app-like interfaces on the web.

大家好,我是来自Cross Border Digital的Charles. 你是否在用JavaScript建站?或者你正在考虑用使用当前比较流行的JavaScript框架:Ember、Node、React 或者是Angular建站。这些都是非常优秀的框架,给网站访客提供类似App的操作体验。


But there are some specific challenges to using these JavaScript frameworks when it comes to SEO. Today, I want to share some insights and advice to help you use these frameworks in a way that will work with Google and ensure that you can rank your website.

但是,当涉及到SEO时,使用这些JavaScript框架存在一些特定的挑战。今天,我想分享一些见解和建议,以帮助您以与Google兼容的方式使用这些框架,确保网站在搜索引擎可以获得排名。


So when it comes to understanding the implications of using JavaScript to build your website, there's really two key things that we need to talk about.

因此,在理解使用JavaScript开发网站的意味着什么时,实际上需要讨论两个关键问题。


The first is how Google actually works, how they treat JavaScript, how they understand JavaScript.

首先是Google的实际工作方式,如何对待JavaScript,如何理解JavaScript。


And the second is understanding the difference between client-side and server-side rendering of the content and HTML on your website.

其次是了解网站上内容和HTML在客户端和服务器端渲染的区别。


These two things together if we can understand these, then we can understand how Google is going to interpret our JavaScript-powered website.

如果我们能理解这两点,那么就能了解Google如何读取JavaScript网站。


OK, so let's first talk about Google. There are in fact two parts to Google's crawling and indexing of the web.

首先来讨论一下谷歌运作方式。谷歌爬取收录网站可以分为两部分:


The first part, the crawler known as Google bot is the part of the infrastructure that follows every link it can find on the web to uncover every URL on your website and on every other website on the web. The Google bot crawler can't render JavaScript. It's simply visits a page. It will do a very quick pass of any HTML that it finds on the page to see if there are any other links it can follow, but otherwise, it simply passes the URLs that it does find back to the indexer.

第一部分,被称为Googlebot的爬虫,是搜索引擎基础结构的一部分,它通过页面上的链接,去发现更多的页面。Google bot爬虫无法渲染JavaScript。它只是访问页面。爬虫会快速查找HTML页面上的链接,继续抓取新的页面,没有新页面就会将爬取到的链接返回谷歌索引(indexer)。

 

The indexer is the part of Google's infrastructure that completely renders a page of all the content, all of the CSS, all of the layout to try in the content, to try and understand what that page is about. So that when someone does a query, it can return that page if it is relevant. Now the indexer can render JavaScript.

索引是Google搜索引擎基础结构的一部分,它负责渲染页面的所有内容,CSS,布局以了解该页面的核心信息。当用户在搜索引擎搜索时,才能返回客户搜索相关的页面。Indexer可以渲染JavaScript。


So it is true to say that Google can render JavaScript-powered web pages.

因此,谷歌支持渲染基于JavaScript开发的网页。

 

But to completely understand the implications of using JavaScript, it is also important to understand the difference between client-side and server-side rendering of JavaScript, because that makes a big difference to the way that Google will interpret your website.

但是要完全了解使用JavaScript对网站的影响,理解客户端和服务器端JavaScript渲染的区别也很重要,因为会导致Google读取网站的方式有很大的不同。


So generally speaking, these modern JavaScript frameworks like React, Node, and Ember, and Angular, they render in the client side. That means that when someone visits your web page that's built on one of these frameworks, the JavaScript application is delivered to the browser and then it renders everything in the browser. It calls the CSS, it calls the content, it calls the images, and any other resources required to lay out your web page into the browser and renders them on the client side.

因此,一般而言,这些现代JavaScript框架(例如React,Node和Ember和Angular)在客户端渲染。这意味着,当用户访问基于这些框架之一开发的网页时,JavaScript应用程序将交付给浏览器,然后在浏览器渲染所有内容。将CSS,文本,图片以及其他与页面展示有关的资源推送到浏览器,在客户端渲染。


A server side rendering is when all of that work is done on the server and the HTML of the complete page and all of the content is delivered to the browser.

服务器端渲染是指在服务器端完成所有渲染工作并将完整页面的HTML和所有内容都交付给浏览器。

 

Now this has big implications for Google because as we said, the Google bot can't render JavaScript. So that means that when Google bot visits your home page or your JavaScript-powered website, if you're rendering client side, it means that the Google bot will get that JavaScript application, but it can't render any content or any link. So it won't find any other links to crawl. It will have to send that single URL back to the indexer. The indexer will then render that page it will find any links and content on that page. It will send any links back to the crawler so that they can then continue to follow those you URLs to see if they can find any other links.

这就对Google收录网站产生了重大影响,因为前面所说,Google bot无法渲染JavaScript。因此,这意味着当Googlebot访问您的主页或基于JavaScript的网站时,如果网站是客户端渲染,则意味着Googlebot将获取该JavaScript应用程序,但无法渲染任何内容或任何链接。因此Google bot无法找到页面上的链接。只会返回一个URL给谷歌indexer。谷歌Indexer将渲染页面并发现页面上的更多链接和内容。发现新的链接则会返回给Google bot去继续抓取进一步发现更多的链接。


And in this way, it really slows down the process of crawling your website in a very big way.
And this is particularly relevant for large websites. So the other thing that I have to say about client-side rendering is that Google's indexer uses a version of Chrome for rendering JavaScript-powered websites that is about three years old.

这就极大地减慢了网站被谷歌抓取的速度,这对于大型网站影响尤为重大。另外,关于客户端渲染,Google的indexer用来来渲染JavaScript网站所使用的Chrome版本已有大约三年的历史。

 

And that means that it can't support all the latest features of these modern JavaScript frameworks. So if you're building a JavaScript-powered website that renders on the client side, it is very important that you ensure that it is set up in such a way that it degrades nicely for older versions of browsers so that Google can render your content and your HTML completely.

这意味着它不能支持那些现代JavaScript框架的所有最新功能。因此,如果您要构建一个以JavaScript为基础的网站,并在客户端进行渲染,那么确保Google可以完全渲染您的内容和HTML。


I've seen many cases where a client-side rendered JavaScript page, Google is able to crawl or index part of it but it doesn't see all of the continent because of some of the features that have been included in that page. So very important that your JavaScript-powered web page degrades nicely for all the versions of the browser.

我看过很多客户端渲染的JavaScript页面,Google能够对其进行抓取和编制索引,但是页面中包含的某些功能谷歌无法完整抓取。因此要确保你基于JavaScript开发网页对于所有版本的浏览器都可以很好地渲染。

 

So we know that Google bot can't render JavaScript. And whilst the Google indexer can render JavaScript, we also know that it is limited to older versions of Chrome. So it doesn't support all the latest features of these modern JavaScript frameworks. So if we are doing client-side rendering, it is more difficult to get all of our content indexed and it really does slow down the entire process of crawling and indexing your website, which includes any changes you make. So if you make changes to your website, particularly if you have a large website, it can take weeks or months for those changes to be reflected in the Google index.

我们知道Google bot无法渲染JavaScript。Google indexer可以呈现JavaScript,但我们也知道它仅限于旧版Chrome。因此,它不支持这些现代JavaScript框架的所有最新功能。因此,如果在进行客户端渲染,则很难对所有的内容建立索引,这确实会减慢对网站被抓取和索引的整个过程,其中包括您所做的任何更改。因此,如果您对网站进行更改,尤其大型网站,则这些更改可能需要数周或数月才能反映在Google索引中。

 

So what to do? Well, our strong recommendation is to use old-fashioned content management systems for public facing web sites, first and foremost. If you haven't yet started the build of your website, then we would strongly recommend you look at one of the content management systems like Ambraco, or Wordpress, or Drupal. Or if you're doing e-commerce, use one of the platforms like Shopify, or BigCommerce.

那么该怎么办?我们强烈建议普通网站使用老式的内容管理系统。如果您还没有开始网站的搭建,那么我们强烈建议您考虑内容管理系统,例如Ambraco,Wordpress或Drupal。如果是电商网站,可以考虑用Shopify, BigCommerce电商建站系统。

 

These content management applications render everything on the server side and deliver the complete HTML to the browser and to Google, which makes it much easier and faster for Google to completely crawl and index your website.

这些内容管理应用程序在服务器端呈现所有内容,并向浏览器和Google提供完整的HTML,这使Google能够更轻松,更快地完全抓取您的网站并为其建立索引。

 

If you have already built a JavaScript-powered website, or if you really want to for whatever reason, then our drawing recommendation is to configure that application to render everything on the server side and deliver the complete HTML and content to the browser and to Google in the same way that one of these older traditional content management systems does. If you can do that properly, then it will make it a lot easier and faster for Google to index your JavaScript-powered website.

如果您已经建立了JavaScript网站,或者出于特殊原因确实想要这样做,那么我们的建议是配置该应用程序在服务器端渲染所有内容,并将完整的HTML和内容提供给浏览器和Google 就像这些较旧的传统内容管理系统之一一样。这对于谷歌快速抓取收录你的JavaScript网站会有很大帮助。

 

Perhaps, you've already launched a JavaScript-powered website that is rendering everything on the client side. You're not sure how to configure it to do that on the server side. There are third party services like Prerender.io, which might help. They might be worth looking at as well.

又或许,您已经发布了一个在客户端渲染的基于JavaScript开发的网站,不知道如何改为在服务器端渲染。有一些第三方服务获取可以帮你解决这个问题,比如Prerender.io。可以了解一下。

 

So in a nutshell, a lot of SEO is about making it easy for Google and not putting hurdles in Google's way. And when it comes to using JavaScript on your website, there are quite a few pitfalls and traps that if you're not aware of them, it's easy to fall into.

简而言之,很多SEO都是为了帮助Google而不是阻碍Google抓取网站。在您的网站上使用JavaScript时,会有很多陷阱,稍不小心就掉入。


免责声明
本文链接:
本文经作者许可发布在AMZ123跨境头条,如有疑问,请联系客服。
最新热门报告作者标签
Etsy更新条款:禁止用卖家作品训练仿制型AI
Etsy在官方社区发布了《使用条款》的说明,回应卖家对近期条款调整的疑问,并明确表示,平台不会使用卖家上传的内容训练复制原创作品或取代创作者创意的AI模型。
俄罗斯Q3电商交易额达3万亿卢布,卖家成本压力加大
整体来看,Q3俄罗斯电商市场仍保持交易额和订单量增长,但卖家承担的佣金、物流等费用持续增加,消费者端的商品价格也开始承受更大压力。
Kogan 27财年Q1财报:营收1.6亿澳元,盈利能力增长
Kogan集团公布了截至2026年10月的2027财年首四个月业绩。受澳大利亚业务毛利率提升、成本控制改善以及新西兰电商平台Mighty Ape经营状况好转推动,集团盈利能力明显增强,调整后EBITDA同比增长49.4%。
26年双十一巴西电商销售额达38亿雷亚尔,同比增长44.9%
2026年巴西电商“11.11”促销活动实现销售额38亿雷亚尔,同比增长44.9%;订单量达到1140万笔,同比增长54.1%。当天销售额比最初预测高出19.7%,是11月1日至10日平均日销售额的2.5倍。
美国拟加新一轮关税!中国卖家将受冲击
美国市场的准入门槛,正在被系统性抬高。汇率波动、关税政策、物流限制、合规收紧等多重压力叠加下,跨境卖家们的利润空间和运营稳定性被不断挤压,出口产品的定价体系、物流路线也都在随之调整,转型升级几乎迫在眉睫。日前又有消息称,美国或将加征新一轮关税。AMZ123获悉,当地时间11月24日,据路透社、华尔街日报等报道,美国正准备根据3月11日启动的《1974年贸易法》第301条的调查结果,对中国、欧盟等16个经济体加征新一轮关税。
美国折扣零售商Dollar Tree Q3财报出炉,营收增至51亿美元
美国折扣零售商Dollar Tree公布截至2026年10月31日的2026财年第三季度业绩。受客流量增长和门店销售表现改善推动,营收同比增长6.9%,可比门店销售额增长4.6%,其中客流量增长3.8%、平均客单价增长0.8%。
百思买发布27财年Q3财报:营收102亿美元,同比增长5.8%
百思买公布2026财年第三季度业绩。受计算机、手机、服务及娱乐等品类销售增长推动,可比销售额同比增长6.1%,创近五年来最高增幅。
评论批量消失!亚马逊评价体系变天
在跨境电商越来越卷的今天,测评这件事已经变了。以前是“谁做谁起量”,现在是——做错方式,反而容易出问题。所以你会看到两种结果:有的人越做越稳有的人一试就被打回原形差别,其实就在资源本身。在这里,一位在深圳做了8年的老卖家分享了自己的经验:如果你现在还敢随便做测评,那你其实是在赌。不是吓你,是现在这个环境真的变了。前段时间有个做家具类的新品链接商家跟我聊说为什么转化一直不高?明明产品好,广告费用也花了不少,性价比高但就是没办法转化。后面我给他推荐了这个服务商。前几天又来找我说:这波效果确实可以,转化明显提升了,广告也没那么烧了。
26年欧洲电商平台TOP10出炉:亚马逊GMV将达2661亿美元
德国电商数据机构ECDB发布了2026年欧洲十大在线交易平台榜单。数据显示,亚马逊继续位居榜首,俄罗斯平台Wildberries和Ozon分列第二、第三。Temu排名升至第四,波兰Allegro和德国Zalando则双双上升两位,分别位列第七和第八。
美国拟对中国等16个经济体加征新一轮关税
美国政府正准备对中国、欧盟及其他多个贸易伙伴加征新一轮关税。调查结果预计最早于本周公布,并宣布相关贸易措施。
TikTok美区女装杀出黑马,国产“拼好衣”90天狂卖7万件
3个月卖了1400万,“拼接版”塑身衣卖爆TikTok美区
Shopee泰国站调整上门取件政策,多店铺卖家需留意
Shopee泰国站更新了上门取件服务费政策,进一步明确多店铺订单合并计算、收费豁免及费用申诉等规则。
马士基上调远东亚洲至地中海航线旺季附加费,最高1500美元
马士基(Maersk)发布公告称,将对远东亚洲至地中海航线征收旺季附加费(PSS),新费率自2026年11月23日起生效。其中,20英尺集装箱每箱加收750美元,40英尺和45英尺集装箱每箱加收1500美元。
英国消费者黑五平均支出192英镑,AI购物使用率达34%
价格比较网站idealo发布了《2026年黑色星期五报告》,分析英国消费者的黑五购物计划、折扣预期及商品价格变化。报告结合了对2000多名英国成年人的调查,以及对100种热门商品、80个商品品类超过4万条每日价格数据的分析。
Allegro在波兰启用新物流中心,年处理包裹将达1000万件
波兰电商平台Allegro正式启用位于波兰中部的新物流中心,专门为One Fulfillment by Allegro提供仓储和订单履约服务。
《中国整车出口白皮书》PDF下载
整车出口保持量价齐升。2026年1-7月出口额1073.48亿美元(特易E平台33码合计)、同比+54.9%(海关总署金额口径),出口量639.9万辆;均价随结构变化在1.6万美元/辆上下。
《中国储能出口全景分析白皮书》PDF下载
全球碳中和进程加速推进,风光发电装机规模持续攀升,储能作为平抑波动、保障电网稳定的关键环节,正从“可选配套”迈向“刚性需求”,海外储能市场由此进入高速增长通道。
《宠物品类:掘金“它经济”》PDF下载
部分市场为宠物鸟儿购买精美的鸟笼和装饰物,为其提供舒适 安全美丽的居住环境
《2026骑行品类爆品分析》PDF下载
巴西骑行爱好群体广泛,但平台上热销品呈现出的国 际大牌极少,推测可能原因是国际品牌可能主要通过 线下经销或自行渠道销售,未深度参与Shopee 等本 土电商。因此巴西用户在平台上几乎接触不到这些高 端品牌产品。平台上巴西用户更倾向购买本土品牌的 自行车,可能出于价格实惠和售后便利考虑。
《中亚生命科学行业市场概览》PDF下载
哈萨克斯坦提供最强大的运营基础,该地区最大的经济体、更高的医疗健康支出和更多的政府支持融资为机构和高价值医疗健康产品提供了相对更强大的基础。
《中国半导体照明及应用领域出口统计及市场发展趋势分析白皮书》PDF下载
本白皮书将详细探讨 LED 照明技术的市场概览、行业细分市场、中国在全球市场中的地位,。以及近三年 LED 模块及灯具成品、车用照明装置和LED 显示屏的出口统计数据。此外,我们还将介绍LED 产品出口至美国所需的认证类型、具体要求和申请流程,以及全球LED 照明市场的未来发展趋势。
《消费电子出海国别机会洞察白皮书》PDF下载
本文将以智能手机、平板电脑、笔记本电脑、无线耳机、充电宝、多喇叭音箱六大核心品类为锚点,深入剖析俄罗斯、墨西哥、越南三国的市场特征与政策环境,为中国企业制定差异化出海策略提供数据支撑与行动指南。
《2026艺术品市场趋势报告》PDF下载
本趋势报告立足全球艺术地缘格局变动、国内行业制度革新与数字技术迭代大背景,聚焦拍卖、画廊、艺术金融、博物馆、新兴地缘市场、AI艺术、潮流消费及国际流通格局等全产业链核心板块,跳出单一成交额涨跌的表层观察,以结构变化、价值逻辑、底层规则重构为核心研判主线,兼具行业实操参考价值、学术研判意义与市场前瞻指导作用,为藏家机构、拍卖画廊、财富管理机构及文化运营主体提供2026年市场决策的核心依据与趋势坐标。
侃侃跨境那些事儿
不侃废话,挣钱要紧!
跨境平台资讯
AMZ123旗下跨境电商平台新闻栏目,专注全球跨境电商平台热点事件,为广大卖家提供跨境电商平台最新动态、最热新闻。
亚马逊公告
AMZ123旗下亚马逊公告发布平台,实时更新亚马逊最新公告,致力打造最及时和有态度的亚马逊公告栏目!
跨境学院
跨境电商大小事,尽在跨境学院。
亚马逊全球开店
亚马逊全球开店官方公众号,致力于为中国跨境卖家提供最新,最全亚马逊全球开店资讯,运营干货分享及开店支持。
跨境科普达人
科普各种跨境小知识,科普那些你不知道的事...
跨境数据中心
聚合海量跨境数据,输出跨境研究智慧。
亿邦动力网
消除一切电商知识鸿沟,每日发布独家重磅新闻。
首页
跨境头条
文章详情
热门活动
跨境资讯
跨境资讯
跨境早报
跨境社群
品类交流群
宠物品类交流群
宠物品类交流群
加入
宠物品类交流群
扫码进群
家居品类交流群
家居品类交流群
加入
家居品类交流群
扫码进群
母婴用品交流群
母婴用品交流群
加入
母婴用品交流群
扫码进群
品类交流群
加入
跨境资料
亚马逊运营干货包
亚马逊运营干货包
加入
亚马逊运营干货包
扫码进群
TikTok运营干货包
TikTok运营干货包
加入
TikTok运营干货包
扫码进群
跨境电商行业报告
跨境电商行业报告
加入
跨境电商行业报告
扫码进群
跨境资料
加入
官方社区
跨境电商交流群
跨境电商交流群
加入
跨境电商交流群
扫码进群
亚马逊卖家交流群
亚马逊卖家交流群
加入
亚马逊卖家交流群
扫码进群
独立站卖家交流群
独立站卖家交流群
加入
独立站卖家交流群
扫码进群
官方社区
加入
AMZ123官方客服二维码1
立即扫码咨询
AMZ123官方客服二维码2
立即扫码咨询
咨询
官方微信群
官方客服

扫码添加,立即咨询

加群
官方微信群
官方微信群

扫码添加,拉你进群

更多
订阅号服务号跨境资讯
二维码

为你推送和解读最前沿、最有料的跨境电商资讯

二维码

90% 亚马逊卖家都在关注的微信公众号

二维码

精选今日跨境电商头条资讯

回顶部