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

JavaScript SEO怎么做

2454
2020-08-06 10:10
2020-08-06 10:10
2454

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跨境头条,如有疑问,请联系客服。
最新热门报告作者标签
雅虎购物推出YouTube联盟营销计划
日本电商平台雅虎购物将与YouTube购物联盟营销计划展开合作。
Zalando在德国与波兰部署AI退货机器人
德国时尚电商平台Zalando与物流企业CEVA Logistics、人工智能机器人公司Sereact展开合作,在波兰希维博津和德国格雷文的物流中心启用AI机器人,自动处理服装等时尚商品的退货。
亚马逊法国启用第10座配送中心,创造1000个正式岗位
亚马逊宣布,在法国瓦兹省博韦市正式启用其在法国的第10座配送中心。该中心投资超过2亿欧元,占地11万平方米,配备亚马逊自主研发的机器人技术,计划创造1000个长期正式工作岗位。
沃尔玛启用加州新自动化履约中心
沃尔玛在美国加利福尼亚州斯托克顿市正式启用一座新自动化仓库,是沃尔玛在美国开设的第5座新一代履约中心,预计将创造超过1000个就业岗位,同时也将向在沃尔玛线上商城销售商品的第三方商家开放。
AI购物Muse或优先推荐知名卖家,新品牌面临曝光难题
据人工智能购物智能体行为追踪软件Profound透露,Meta旗下AI购物智能体Muse在筛选商品时会优先推荐知名商家,并且只有接入Meta商品目录并开启相应功能的商品,才能在Muse对话中直接结账。
Allegro将于10月27日新增AI客服等功能
波兰电商平台Allegro将于2026年10月27日起调整平台规则,涉及人工智能客服、商品评价、账户数据使用、先买后付服务Allegro Pay以及旅游服务Allegro Wakacje等多个方面。
美国FCC拟严控境外设备检测认证,中国成主要受影响方
建议相关卖家尽快梳理现有合作实验室,评估备选检测方案。
Meta 封禁字节跳动广告投放【细节+影响】
Meta 限制字节产品在 Meta 平台上投放。
Yandex俄罗斯数据中心遇袭,多项服务受影响
俄罗斯科技公司Yandex位于梁赞州萨索沃市的数据中心遭乌克兰无人机袭击并发生火灾,导致该设施全面停运,多项线上服务出现故障。
亚马逊推出评论邀请与AI广告等新功能
亚马逊接连推出多项面向卖家和广告主的新功能,覆盖商品评论、广告投放等环节。
26年亚马逊秋季大促线上销售额达98.6亿美元
Adobe发布的数据显示,2026年亚马逊Prime Big Deal Days大促期间,美国消费者在线上零售市场的总支出高于2025年同期。为期两天的大促不仅带动了电子产品、玩具和个护用品等多个品类的销售,也推动品牌提前推出假日促销活动。
美国CBP发布低价值货物入境新规草案
这份草案计划调整2500美元及以下商品非正式入境的申报要求。
26年美国消费者万圣节预算涨至285美元,服饰仍是热销品
德勤(Deloitte)最新调查显示,今年美国万圣节的购物热情仍在升温。2026年美国消费者平均每个家庭计划为万圣节支出285美元。尽管消费者对美国经济的看法并不一致,但34%的家庭计划比2025年花更多钱,只有11%预计减少支出。
TikTok被禁止在Meta美国等七国平台投放广告
Meta宣布,禁止字节跳动(ByteDance)及其旗下TikTok在美国等7个国家和地区的Meta平台投放广告,同时限制第三方广告商投放跳转至TikTok及字节跳动旗下其他产品的广告。该禁令于当地时间10月8日开始实施。
广东小城,靠玩具做出500亿跨境生意
在澄海,玩具的更新速度是按天计算的。一张设计图交到工厂,模具、注塑、电子元件、喷涂、组装和包装,很快就能在周边找到对应的供应商。新品做出来后,会被送进当地大型玩具展厅,与几十万件样品一起等待全球采购商挑选。这样的新品,澄海平均每天要推出1000多款。AMZ123了解到,这片不足400平方公里的土地,聚集了超过6万家玩具生产经营单位,撑起全国超过一半、全球约三分之一的塑料玩具产量。积木、遥控车、过家家玩具、机器人……全球孩子拆开的玩具包装里,很可能就藏着一个“澄海制造”。不过,40多年前的澄海还没有如此密集的产业链。当地人最早生产的,只是结构简单的塑料装糖玩具,不少工厂也只是开在客厅、院子里的家庭作坊。
亚马逊广告接入ChatGPT,卖家流量入口正在改变
正文亚马逊广告开始出现在 ChatGPT但绝大多数卖家现在还没有入口真正值得关注的是购物决策正在从搜索框延伸到对话框美国部分广告主开始试点ChatGPTAds2026年9月10日,亚马逊广告宣布与 OpenAI 建立合作,支持广告主通过 ChatGPT 上的对话式广告体验拓展亚马逊广告活动。根据官方公告,美国部分广告主目前正在试点 ChatGPT Ads。不少卖家最关心的是:这个广告怎么开?答案很直接,绝大多数卖家现在还开不了。官方只确认了“部分广告主试点”,并未宣布 Seller Central 面向所有卖家开放自助入口。
TikTok Shop 2026年度越南站点趋势洞察报告
1.统计周期:2025年08月到2026年07月 2.研究对象:分析TikTok Shop越南、主流市场短视频及直播电商数据,选取TikTok相关的内容进行分析报告
《2026欧盟PPWR包装合规白皮书》PDF下载
PPWR明确要求经济运营者必须准确了解其在每种包装投放市场过程中扮演的角色。对许多企业来说,这些角色的定义在理论上很简单,但在实践中会令人困惑,因为同一家公司可能根据包装投放市场方式不同而扮演不同的角色。
《2026年全球智能手机市场洞察研究报告》PDF下载
从全球智能手机市场出货量来看,2020–2021年,在疫情后需求释放与远程办公驱动下,出货量从12.9亿台提升至 13.6亿台,达到阶段性高点。但自2022年起,受宏观经济走弱、消费电子需求疲软及库存去化影响,市场连续两年下 滑,2023年降至11.6亿台的周期低点。
《跨境电商全球旺季经营增长指南》PDF下载
本指南旨在帮助出海企业完善支付和结账流程,构建全球扩张基础设施准备,为黑色星期五及后续销售周期实现高转化增长夯实业务基础。
《TikTok美区出海经营方法论白皮书》PDF下载
全球零售稳步攀升 未来4年全球零售市场仍将保持较稳定增长趋势,预计2024-2028年仍将保持5%左右的复合增长率,全球用户消费潜力巨大
《中国出海产业带洞察系列报告-中国小家电产业带》PDF下载
当全球商业加速互联,中国出海企业正以全速之姿迈向世界。在这场波澜壮阔的全球化征程中,各大产业带正以坚实、高效的硬核供应链,成为中国制造最底气十足的后盾。
《亚马逊印度站 高潜力选品推荐》PDF下载
140个重点品类:官方大数据告诉你什么产品在印度需求更大
《2026食品饮料品类出海全攻略》PDF下载
国外华人数量多,与中国人口味偏好最为接近,各类零食及速食产品接受度高;偏好甜食,如巧克力饼干/水果糖等;对健康养生产品需求较大,如黑芝麻丸/刺梨干/抹茶粉/混合坚果等。
AMZ123选品观察员
选品推荐及选品技巧分享。
北美电商资讯
AMZ123旗下北美跨境电商新闻栏目,专注北美跨境电商热点资讯,为广大卖家提供北美跨境电商最新动态、最热新闻。
跨境平台资讯
AMZ123旗下跨境电商平台新闻栏目,专注全球跨境电商平台热点事件,为广大卖家提供跨境电商平台最新动态、最热新闻。
AMZ123星球
「AMZ123会员」为出海者推出的一站式私享服务
跨境数据中心
聚合海量跨境数据,输出跨境研究智慧。
跨境科普达人
科普各种跨境小知识,科普那些你不知道的事...
亚马逊全球开店
亚马逊全球开店官方公众号,致力于为中国跨境卖家提供最新,最全亚马逊全球开店资讯,运营干货分享及开店支持。
亚马逊资讯
AMZ123旗下亚马逊资讯发布平台,专注亚马逊全球热点事件,为广大卖家提供亚马逊最新动态、最热新闻。
首页
跨境头条
文章详情
热门活动
跨境资讯
跨境资讯
跨境早报
跨境社群
品类交流群
宠物品类交流群
宠物品类交流群
加入
宠物品类交流群
扫码进群
家居品类交流群
家居品类交流群
加入
家居品类交流群
扫码进群
母婴用品交流群
母婴用品交流群
加入
母婴用品交流群
扫码进群
品类交流群
加入
跨境资料
亚马逊运营干货包
亚马逊运营干货包
加入
亚马逊运营干货包
扫码进群
TikTok运营干货包
TikTok运营干货包
加入
TikTok运营干货包
扫码进群
跨境电商行业报告
跨境电商行业报告
加入
跨境电商行业报告
扫码进群
跨境资料
加入
官方社区
跨境电商交流群
跨境电商交流群
加入
跨境电商交流群
扫码进群
亚马逊卖家交流群
亚马逊卖家交流群
加入
亚马逊卖家交流群
扫码进群
独立站卖家交流群
独立站卖家交流群
加入
独立站卖家交流群
扫码进群
官方社区
加入
AMZ123官方客服二维码1
立即扫码咨询
AMZ123官方客服二维码2
立即扫码咨询
咨询
官方微信群
官方客服

扫码添加,立即咨询

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

扫码添加,拉你进群

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

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

二维码

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

二维码

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

回顶部