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

JavaScript SEO怎么做

2319
2020-08-06 10:10
2020-08-06 10:10
2319

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跨境头条,如有疑问,请联系客服。
最新热门报告作者标签
拼多多发布2026年Q2财报,净利润下降11.61%!
AMZ123获悉,8月24日,拼多多公布了2026年二季度财报。报告期内,拼多多营收达1124亿元,同比增长8%,增速低于市场预期,归母净利润达271.82亿元,同比下降11.61%,Non-GAAP研发投入43亿元,同比增长40%。对于利润下滑的原因,拼多多称主要系平台生态持续加码投入,叠加海外非经营项目亏损影响。平台投入方面,拼多多仍在持续加强平台的合规建设及技术能力,二季度营业成本为480亿元,同比增长5%;运营费用合计为366亿元,同比增长13%。其中,销售与营销费用为297亿元,同比增长9%;研发费用为46亿元,同比增长27%;一般及行政费用为23亿元,同比增长53%。
沃尔玛广告主峰会下午场揭晓!三个分会场,深入旺季实战!
9月16日沃尔玛广告中国年度峰会将在深圳举行。上午场议程已公布,下午三大分会场也正式揭晓!按卖家经营阶段量身定制,实战、提效、增量、降本一次讲透,找到适配的旺季打法。立即报名,锁定席位。新星·引爆指南|面向旺季起量阶段的卖家旺季起量无从下手,这场「旺季起量指南」零门槛起步,从打法到案例全覆盖:· 起量打法全覆盖:从广告增长新打法到爆款三角增长论,系统拆解旺季起量核心逻辑。· 新品破零全拆解:从0到1新品起量指南,抓取第一波核心流量,实现快速破零。· 大促节奏全掌握:旺季前中后完整投放地图,搭配明星卖家13倍增长实战案例。· 广告组合打增量:多产品组合拳系统打法,把每一分预算都变成旺季实打实销量。
UPS拟投资超20亿美元,新建亚欧美洲物流枢纽
将持续向国际业务、医疗保健物流和供应链解决方案业务投入超过20亿美元。这项投资始于2024年,并将持续至2028年,覆盖欧洲、亚太地区和美洲等多个关键市场。
沃尔玛墨西哥拟投资超40亿比索,引入机器人拣货系统
沃尔玛在墨西哥州特波特佐特兰的Megapark配送中心进一步扩大机器人系统的应用。
亚马逊拟投资5.3亿美元,建设AI+机器人自动配送站
亚马逊正在推进一项名为“Project Tetromino”的自动化物流计划,计划利用人工智能和机器人打造高度自动化甚至全自动化的配送站。
Ozon 6处物流中心遇袭,多地仓库起火或停运
仅在8月22日至24日3天内,Ozon已有6处物流设施成为乌克兰袭击目标,其中部分物流中心起火并暂停运营,部分仓库则因安全风险紧急疏散员工。Ozon推出一系列措施,帮助受到影响的卖家。
巴拿马运河限航,美东航线运价大幅走高
针对本次运河管控带来的航运变动,跨境电商卖家需提前做好备货与物流预案。
今日生效!亚马逊更新BSA,严禁私下转店及回款质押
这条新协议,直接堵死行业里长期存在的私下账号交易、回款质押融资这类灰色操作。
义乌又一“神仙单品”翻红,TikTok单条视频7天播放610万
自带墨镜的帽子走红TikTok,跨境卖家靠其赚到第一桶金
与安克同榜!它在亚马逊月销超10万单
近日,业内一份跨境电商品牌影响力排行榜显示,来自上海司顺电子商务有限公司的跨境品牌VEVOR位居第三,仅次于SHEIN、Anker等知名品牌,引起了业内关注。在消费电子、快时尚、家具家居等跨境电商热门品类的包围下,这家主营MRO工具设备类产品的上海大卖格外显眼。它是如何在工具这条冷门赛道里跑出规模增长的?本文将从平台运营、品牌塑造、营销策略等维度,深入拆解VEVOR的跨境电商打法。把时间的指针拨回2007年,VEVOR的创始人焦如宝最初做的其实是跨境服装生意。
强制生效倒计时8天,欧盟FBA入仓新规即将落地
建议各位卖家优先排查店铺爆款、高转化核心SKU对应的所有在途及仓内货件。
超52起受伤报告,CPSC召回4.1万亚马逊在售儿童秋千
美国消费品安全委员会(CPSC)紧急召回Taleco Gear品牌销售的Baby Jumper婴儿弹跳椅、Baby Swing婴儿秋千以及2-in-1 Baby Jumper & Swing二合一婴儿弹跳椅/秋千,原因是产品可能出现不稳定,存在跌落、撞击以及勒颈风险,严重时可能导致受伤甚至死亡。
销量暴涨797%,10万元激励寻找绿标增长先锋
进入下半年,秋季大促、黑五网一接连到来。对亚马逊卖家来说,旺季从来不缺流量,真正稀缺的是:如何在竞价越来越贵、同质化越来越强的情况下,让消费者更快看见并相信你的产品。亚马逊气候友好认证(ClimatePledgeFriendly,简称CPF)之所以被越来越多卖家关注,正是因为它同时连接了三个卖家关心的问题:前台绿色标识、消费者信任,以及平台部分推荐场景中的差异化展示机会。但卖家最关心的并不是概念,而是结果:上了绿标到底有没有增长?中型卖家是否也有机会?现在启动还能不能赶上旺季?第一期“绿标先锋计划”给出了一组值得关注的答案。
Ozon俄罗斯两座物流中心被无人机袭击
乌克兰无人机袭击了Ozon俄罗斯的两处物流中心,这是乌克兰首次袭击Ozon设施。
Temu等平台拿下75%订单,亚马逊在以色列市场遇冷
2026年6月,AliExpress、Temu和Shein三大中国跨境电商平台合计占据以色列消费者线上订单约75%的份额,而亚马逊的市场份额仅为6%。
《独立站驱动全渠道整合新增长报告》PDF下载
伴随行业竞争加剧,全球化品牌正展现出愈发广泛和深入的进攻态势发力海外市场,持续追求产品、流量、渠道及服务的升维化与精细化。全渠道整合商业(Unified Commerce),即以独立站为核心,连接第三方平台、B2B、社交网络及零售实体等其他渠道,实现全渠道整合、全场景覆盖及全触点渗透。
《TikTok shop 2026全站点H1报告》PDF下载
分析TikTok Shop全球主流市场短视频及直播电商数据,选取TikTok2026年2026年H1相关内容进行分析报告
《2025产业带数智化跨境发展报告》PDF下载
根据统计口径不同,中国产业带数量在281-1100个之间,有超600万家制造企业,制造业产值占全球的35%,产能出口刚需强。按照海关总署重点商品统计口径,2024年我国以省域为单位测算货物出口规模超过千亿的产业集群共有35个,合计出口6.35万亿元,占我国货物出口总量的24.96%。在强烈的出口刚需下,正在萌发多种创新模式,激活产业带工厂出海。
《2024出海区域国别报告》PDF下载
近年来,中国已成为拉丁美洲日益重要的贸易伙伴和投资者。中国在该地区的贸易与投资给多个拉美国家经济增长带来机遇,拉美地区对与中国接触有着浓厚兴趣。
《TikTok Shop2026全站点Q1季报》PDF下载
2026年第一季度,TikTok Shop在全球(基于所提供的10个站点数据)继续保持强劲的增长态势总GMV已达274.53亿美元。整体市场呈现出核心市场GMV体量巨大、新兴市场爆发式增长的特征美国站以69.85亿美元的GMV稳居榜首,对比25年第一季度增长了66%。
《2026 欧盟绿色供应链合规报告》PDF下载
近年来,欧盟绿色供应链合规规则正加速成型。欧盟不再以产品是否符合技术标准作为市场准入条件,而是进一步要求企业说明其生产过程、供应链管理、资金来源和数字化应用是否符合欧盟规则。由此,欧盟内部市场正在成为其推行单边主义、实施经济胁迫的重要制度工具。
《2025中国AI企业出海系列研究:印尼篇》PDF下载
作为印尼最大的贸易伙伴和首要出口目的地,中国为印尼经济增长注入了强劲动能;与此同时,印尼已成为中国在东南亚地区的重要贸易伙伴和优先投资目的国,为中国企业提供广阔市场与丰富资源。紧密的经贸纽带共同推动了双边贸易的持续繁荣。
《2024跨境供应链洞察报告》PDF下载
当前,全球化商业浪潮推动着跨境电商行业迅猛发展,产业带接轨跨境电商、平台半托管模式兴起、社交电商红利机会以及海外仓扩张,驱动产业带外贸工厂、内贸工厂、传统进出口企业及品牌企业等加速布局跨境电商,赛道繁荣也加剧了供给侧竞争。
跨境平台资讯
AMZ123旗下跨境电商平台新闻栏目,专注全球跨境电商平台热点事件,为广大卖家提供跨境电商平台最新动态、最热新闻。
跨境电商干货集结
跨境电商干货集结,是结合亚马逊跨境电商卖家交流群内大家在交流过程中最常遇到的问题,进行收集整理,汇总解答,将会持续更新大家当前最常遇见的问题。欢迎大家加入跨境电商干货集结卖家交流群一起探讨。
AMZ123卖家导航
做跨境电商,就上AMZ123
跨境数据中心
聚合海量跨境数据,输出跨境研究智慧。
AMZ123跨境电商
专注跨境行业热点事件报道,每日坚持推送原创深度热文
北美电商资讯
AMZ123旗下北美跨境电商新闻栏目,专注北美跨境电商热点资讯,为广大卖家提供北美跨境电商最新动态、最热新闻。
跨境电商赢商荟
跨境电商行业唯一一家一年365天不断更的媒体!
AMZ123选品观察员
选品推荐及选品技巧分享。
首页
跨境头条
文章详情
热门活动
跨境资讯
跨境资讯
跨境早报
跨境社群
品类交流群
宠物品类交流群宠物品类交流群
加入
宠物品类交流群
扫码进群
家居品类交流群家居品类交流群
加入
家居品类交流群
扫码进群
母婴用品交流群母婴用品交流群
加入
母婴用品交流群
扫码进群
品类交流群
加入
跨境资料
亚马逊运营干货包亚马逊运营干货包
加入
亚马逊运营干货包
扫码进群
TikTok运营干货包TikTok运营干货包
加入
TikTok运营干货包
扫码进群
跨境电商行业报告跨境电商行业报告
加入
跨境电商行业报告
扫码进群
跨境资料
加入
官方社区
跨境电商交流群跨境电商交流群
加入
跨境电商交流群
扫码进群
亚马逊卖家交流群亚马逊卖家交流群
加入
亚马逊卖家交流群
扫码进群
独立站卖家交流群独立站卖家交流群
加入
独立站卖家交流群
扫码进群
官方社区
加入
AMZ123官方客服二维码1
立即扫码咨询
AMZ123官方客服二维码2
立即扫码咨询
咨询
官方微信群
官方客服

扫码添加,立即咨询

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

扫码添加,拉你进群

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

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

二维码

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

二维码

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

回顶部