CN102622381A - 一种网页重排版的方法和*** - Google Patents
一种网页重排版的方法和*** Download PDFInfo
- Publication number
- CN102622381A CN102622381A CN2011100603414A CN201110060341A CN102622381A CN 102622381 A CN102622381 A CN 102622381A CN 2011100603414 A CN2011100603414 A CN 2011100603414A CN 201110060341 A CN201110060341 A CN 201110060341A CN 102622381 A CN102622381 A CN 102622381A
- Authority
- CN
- China
- Prior art keywords
- web page
- mobile phone
- reset
- page
- browser client
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/197—Version control
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/16—Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9577—Optimising the visualization of content, e.g. distillation of HTML documents
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Artificial Intelligence (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Mathematical Physics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Health & Medical Sciences (AREA)
- Information Transfer Between Computers (AREA)
- Telephonic Communication Services (AREA)
Abstract
本发明公开了一种网页重排版的方法和***,适用于手机互联网,手机浏览器客户端获取网页地址,询问缓存服务器是否存储有网页地址的已经重排版页面,缓存服务器进行判断,如果有,则将已经重排版页面发送给手机浏览器客户端显示,如果没有,则手机浏览器客户端获取网页地址对应的未重排版的网页,并应用预设的网页重排版策略对网页地址对应的未重排版的网页进行重排版,生成网页地址对应的重排版页面,并显示,同时将网页地址对应的重排版页面上传到缓存服务器中保存。采用了本发明的技术方案,能够在保留服务器加速效果的同时,大大降低对服务器的资源消耗。
Description
技术领域
本发明涉及手机互联网技术领域,尤其涉及一种网页重排版的方法和***。
背景技术
在计算机互联网领域,服务器缓存加速技术是一个被广泛采用的技术,已经有很多成熟的服务器缓存加速产品。例如SQUID和NGINX,这些产品实现服务器缓存加速的主要策略是:将用户最频繁访问的互联网资源(例如图片、静态网页等)缓存在高速缓存区。由于这类技术不对原始www网页作任何转化,导致www网页在屏幕相对计算机小很多的手机上阅读体验非常差。
在手机互联网领域,最有代表性的服务器缓存加速技术是优视动景公司(UCWEB浏览器)的技术,原理是利用服务器的计算能力将www网页抓取下来后进行页面重排版。考虑到互联网上有数千亿的中文网页,应用该模型需要消耗大量服务器的计算能力和网络带宽,而且部分网站是不欢迎网络爬虫的,对于这一类网站,用代理服务器去反复抓取网页会带来实施上的困难,同时考虑到很大一部分网页其实根本不会被手机用户访问到,又在一定程度上导致服务器资源浪费。
发明内容
本发明的目的在于提出一种网页重排版的方法和***,能够在保留服务器加速效果的同时,大大降低对服务器的资源消耗。
为达此目的,本发明采用以下技术方案:
一种网页重排版的方法,适用于手机互联网,包括以下步骤:
A、手机浏览器客户端获取网页地址;
B、手机浏览器客户端询问缓存服务器是否存储有所述网页地址的已经重排版页面,缓存服务器判断是否存储有所述网页地址的已经重排版页面,如果有,则缓存服务器将已经重排版页面发送给手机浏览器客户端,手机浏览器客户端显示所述已经重排版页面;如果没有,则转至步骤C;
C、手机浏览器客户端获取网页地址对应的未重排版的网页;
D、手机浏览器客户端应用预设的网页重排版策略对网页地址对应的未重排版的网页进行重排版,生成网页地址对应的重排版页面,并显示所述重排版页面;
E、手机浏览器客户端将网页地址对应的重排版页面上传到缓存服务器中保存。
所述网页重排版策略包括内容抽取、运行网页脚本语言和去除广告。
所述预设的网页重排版策略存储在手机浏览器客户端中。
缓存服务器定期清理过期的缓存页面。
一种网页重排版的***,适用于手机互联网,包括手机浏览器客户端和缓存服务器,手机浏览器客户端与缓存服务器之间通过网络连接,手机浏览器客户端用于获取并显示网页地址对应的已经重排版页面,根据网页重排版策略将网页地址对应的未重排版页面生成重排版页面,并上传到缓存服务器中保存;缓存服务器用于存储网页地址对应的重排版页面,并发送给手机浏览器客户端。
采用了本发明的技术方案,可以在保留服务器加速效果的同时,将既耗计算资源又耗网络带宽的网页重排版(运行javascript脚本、应用css网页模板、下载flash和加载广告图片等)按需分布到各个手机终端,大大降低对服务器的资源消耗,尤其对那些网页内容变化相对较少的新闻、博客和连载小说类网站效果显著。
附图说明
图1是本发明具体实施方式中网页重排版的流程图。
具体实施方式
下面结合附图并通过具体实施方式来进一步说明本发明的技术方案。
本发明技术方案的主要思想是采用一种适用于手机互联网的网页重排版的***来实现在保留服务器加速效果的同时,将既耗计算资源又耗网络带宽的网页重排版动作按需分布到各个手机终端。
该***包括手机浏览器客户端和缓存服务器,手机浏览器客户端与缓存服务器之间通过网络连接,手机浏览器客户端获取并显示网页地址对应的已经重排版页面,根据网页重排版策略将网页地址对应的未重排版页面生成重排版页面,并上传到缓存服务器中保存,缓存服务器存储网页地址对应的重排版页面,并发送给手机浏览器客户端。
图1是本发明具体实施方式中网页重排版的流程图。如图1所示,该网页重排版流程包括以下步骤:
步骤101、手机浏览器客户端获取需要访问的网页地址。
步骤102、手机浏览器客户端询问缓存服务器是否存储有该网页地址的已经重排版页面。
步骤103、缓存服务器判断是否存储有该网页地址的已经重排版页面,如果有,则转至步骤104;如果没有,则转至步骤105。
步骤104、缓存服务器将已经重排版页面发送给手机浏览器客户端,手机浏览器客户端显示该已经重排版页面。
步骤105、手机浏览器客户端获取网页地址对应的未重排版的网页。
步骤106、手机浏览器客户端应用预设的网页重排版策略对网页地址对应的未重排版的网页进行重排版,生成网页地址对应的重排版页面,并显示该重排版页面。该预设的网页重排版策略就存储在手机浏览器客户端中,包括内容抽取、运行网页脚本语言和去除广告等。
步骤107、手机浏览器客户端将网页地址对应的重排版页面上传到缓存服务器中保存。
缓存服务器定期清理过期的缓存页面,过期策略可以参考 HTTP标准(rfc2616),也可以根据网站特征来设定。
缓存服务器可以分辨用户的屏幕尺寸、手机机型、网络环境等信息,并针对不同的参数配置进行多级缓存。出于安全性考虑,缓存服务器暂时不缓存用户已经登录过的页面,以免泄漏用户隐私。
另外缓存服务器可以主动或被动的向手机浏览器客户端推送新的网页重排版策略。
经过测试,即使GPRS这种慢速网络下,网页打开速度平均从加速前的25秒降低到加速后5秒;而Wifi环境下能做到秒开,效果显著。打开一篇新浪新闻所需要下载的数据从900KB减少为小于100KB,压缩效果明显。
以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉该技术的人在本发明所揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。
Claims (5)
1.一种网页重排版的方法,适用于手机互联网,其特征在于,包括以下步骤:
A、手机浏览器客户端获取网页地址;
B、手机浏览器客户端询问缓存服务器是否存储有所述网页地址的已经重排版页面,缓存服务器判断是否存储有所述网页地址的已经重排版页面,如果有,则缓存服务器将已经重排版页面发送给手机浏览器客户端,手机浏览器客户端显示所述已经重排版页面;如果没有,则转至步骤C;
C、手机浏览器客户端获取网页地址对应的未重排版的网页;
D、手机浏览器客户端应用预设的网页重排版策略对网页地址对应的未重排版的网页进行重排版,生成网页地址对应的重排版页面,并显示所述重排版页面;
E、手机浏览器客户端将网页地址对应的重排版页面上传到缓存服务器中保存。
2.根据权利要求1所述的一种网页重排版的方法,其特征在于,所述网页重排版策略包括内容抽取、运行网页脚本语言和去除广告。
3.根据权利要求1所述的一种网页重排版的方法,其特征在于,所述预设的网页重排版策略存储在手机浏览器客户端中。
4.根据权利要求1所述的一种网页重排版的方法,其特征在于,缓存服务器定期清理过期的缓存页面。
5.一种网页重排版的***,适用于手机互联网,其特征在于,包括手机浏览器客户端和缓存服务器,手机浏览器客户端与缓存服务器之间通过网络连接,手机浏览器客户端用于获取并显示网页地址对应的已经重排版页面,根据网页重排版策略将网页地址对应的未重排版页面生成重排版页面,并上传到缓存服务器中保存;缓存服务器用于存储网页地址对应的重排版页面,并发送给手机浏览器客户端。
Priority Applications (6)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011100603414A CN102622381B (zh) | 2011-03-14 | 2011-03-14 | 一种网页重排版的方法和*** |
PCT/CN2012/072281 WO2012122932A1 (zh) | 2011-03-14 | 2012-03-13 | 一种网页重排版的方法和*** |
EP20120757296 EP2687996A4 (en) | 2011-03-14 | 2012-03-13 | METHOD AND SYSTEM FOR REAGENCING WEB PAGE |
JP2013556959A JP2014509019A (ja) | 2011-03-14 | 2012-03-13 | 一種のページ再組版の方法及びページ再組版のシステム |
KR1020137024413A KR101485949B1 (ko) | 2011-03-14 | 2012-03-13 | 웹페이지 재배치 방법과 시스템 |
US14/005,010 US20140006918A1 (en) | 2011-03-14 | 2012-03-13 | Method and system for web page rearrangement |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011100603414A CN102622381B (zh) | 2011-03-14 | 2011-03-14 | 一种网页重排版的方法和*** |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102622381A true CN102622381A (zh) | 2012-08-01 |
CN102622381B CN102622381B (zh) | 2013-11-13 |
Family
ID=46562304
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011100603414A Active CN102622381B (zh) | 2011-03-14 | 2011-03-14 | 一种网页重排版的方法和*** |
Country Status (6)
Country | Link |
---|---|
US (1) | US20140006918A1 (zh) |
EP (1) | EP2687996A4 (zh) |
JP (1) | JP2014509019A (zh) |
KR (1) | KR101485949B1 (zh) |
CN (1) | CN102622381B (zh) |
WO (1) | WO2012122932A1 (zh) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102904947A (zh) * | 2012-09-29 | 2013-01-30 | 北京百度网讯科技有限公司 | 应用客户端展示样式更新和/或内容扩展的方法及*** |
CN104182505A (zh) * | 2014-08-19 | 2014-12-03 | 小米科技有限责任公司 | 网页重排方法和装置 |
CN104536993A (zh) * | 2014-12-10 | 2015-04-22 | 北京奇虎科技有限公司 | 收藏网页的处理方法、收藏网页的处理装置和客户端 |
CN104820664A (zh) * | 2014-01-30 | 2015-08-05 | 西门子公司 | 一种用于改编网页的方法和装置 |
CN112363732A (zh) * | 2020-10-15 | 2021-02-12 | 深圳市明源云科技有限公司 | 网站封装方法、装置、终端设备及计算机可读存储介质 |
CN114564668A (zh) * | 2022-01-17 | 2022-05-31 | 广州文石信息科技有限公司 | 一种网页排版方法、装置、终端设备以及存储介质 |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2786418C (en) * | 2012-08-16 | 2020-04-14 | Ibm Canada Limited - Ibm Canada Limitee | Identifying equivalent javascript events |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101150803A (zh) * | 2007-10-24 | 2008-03-26 | 优视动景(北京)技术服务有限公司 | 微浏览器处理网络数据的方法、微浏览器及其服务器 |
US20090265618A1 (en) * | 2008-04-18 | 2009-10-22 | Hong-Yung Wang | Method of browsing web information using a mobile handheld device |
CN101625700A (zh) * | 2009-08-12 | 2010-01-13 | 中兴通讯股份有限公司 | 在终端上优化显示网络页面的方法和装置 |
CN101815093A (zh) * | 2010-03-11 | 2010-08-25 | 深圳市嘉讯软件有限公司 | 一种网页到移动终端的适配方法及移动终端页面适配装置 |
Family Cites Families (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6421733B1 (en) * | 1997-03-25 | 2002-07-16 | Intel Corporation | System for dynamically transcoding data transmitted between computers |
US6938073B1 (en) * | 1997-11-14 | 2005-08-30 | Yahoo! Inc. | Method and apparatus for re-formatting web pages |
EP1061458A2 (en) * | 1999-06-15 | 2000-12-20 | Sun Microsystems, Inc. | Caching of reduced forms of web pages on a small footprint device |
US20040049737A1 (en) * | 2000-04-26 | 2004-03-11 | Novarra, Inc. | System and method for displaying information content with selective horizontal scrolling |
US20030033432A1 (en) * | 2001-08-08 | 2003-02-13 | Simpson Shell S. | Web based imaging service that converts web pages into content on behalf of another web site |
US7624126B2 (en) * | 2003-06-25 | 2009-11-24 | Microsoft Corporation | Registering for and retrieving database table change information that can be used to invalidate cache entries |
JP2005141360A (ja) * | 2003-11-05 | 2005-06-02 | Matsushita Electric Ind Co Ltd | 遠隔制御システム及び遠隔制御方法 |
US20070088852A1 (en) * | 2005-10-17 | 2007-04-19 | Zohar Levkovitz | Device, system and method of presentation of advertisements on a wireless device |
US8181107B2 (en) * | 2006-12-08 | 2012-05-15 | Bytemobile, Inc. | Content adaptation |
CN101221572B (zh) | 2008-01-25 | 2010-06-02 | 吴坤达 | 一种网页数据处理*** |
JP4799587B2 (ja) * | 2008-06-04 | 2011-10-26 | 株式会社エヌ・ティ・ティ・データ | ネットワークブートシステム及びネットワークブート方法 |
US8959536B2 (en) * | 2008-08-18 | 2015-02-17 | Infosys Limited | Method and system for providing applications to various devices |
CN101526953A (zh) | 2009-01-19 | 2009-09-09 | 北京跳网无限科技发展有限公司 | Www转换技术 |
GB0902834D0 (en) * | 2009-02-19 | 2009-04-08 | Aceplan Invest Ltd | Content access platform and methods and apparatus providing access to internet content for heterogeneous devices |
CN101977233A (zh) | 2010-11-01 | 2011-02-16 | 优视科技有限公司 | 一种移动终端以阅读模式浏览网页方法和*** |
-
2011
- 2011-03-14 CN CN2011100603414A patent/CN102622381B/zh active Active
-
2012
- 2012-03-13 WO PCT/CN2012/072281 patent/WO2012122932A1/zh active Application Filing
- 2012-03-13 US US14/005,010 patent/US20140006918A1/en not_active Abandoned
- 2012-03-13 EP EP20120757296 patent/EP2687996A4/en not_active Withdrawn
- 2012-03-13 KR KR1020137024413A patent/KR101485949B1/ko active IP Right Grant
- 2012-03-13 JP JP2013556959A patent/JP2014509019A/ja active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101150803A (zh) * | 2007-10-24 | 2008-03-26 | 优视动景(北京)技术服务有限公司 | 微浏览器处理网络数据的方法、微浏览器及其服务器 |
US20090265618A1 (en) * | 2008-04-18 | 2009-10-22 | Hong-Yung Wang | Method of browsing web information using a mobile handheld device |
CN101625700A (zh) * | 2009-08-12 | 2010-01-13 | 中兴通讯股份有限公司 | 在终端上优化显示网络页面的方法和装置 |
CN101815093A (zh) * | 2010-03-11 | 2010-08-25 | 深圳市嘉讯软件有限公司 | 一种网页到移动终端的适配方法及移动终端页面适配装置 |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102904947A (zh) * | 2012-09-29 | 2013-01-30 | 北京百度网讯科技有限公司 | 应用客户端展示样式更新和/或内容扩展的方法及*** |
CN102904947B (zh) * | 2012-09-29 | 2019-07-23 | 北京百度网讯科技有限公司 | 应用客户端展示样式更新和/或内容扩展的方法及*** |
CN104820664A (zh) * | 2014-01-30 | 2015-08-05 | 西门子公司 | 一种用于改编网页的方法和装置 |
CN104182505A (zh) * | 2014-08-19 | 2014-12-03 | 小米科技有限责任公司 | 网页重排方法和装置 |
CN104536993A (zh) * | 2014-12-10 | 2015-04-22 | 北京奇虎科技有限公司 | 收藏网页的处理方法、收藏网页的处理装置和客户端 |
CN104536993B (zh) * | 2014-12-10 | 2018-03-20 | 北京奇虎科技有限公司 | 收藏网页的处理方法、收藏网页的处理装置和客户端 |
CN112363732A (zh) * | 2020-10-15 | 2021-02-12 | 深圳市明源云科技有限公司 | 网站封装方法、装置、终端设备及计算机可读存储介质 |
CN114564668A (zh) * | 2022-01-17 | 2022-05-31 | 广州文石信息科技有限公司 | 一种网页排版方法、装置、终端设备以及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
JP2014509019A (ja) | 2014-04-10 |
KR101485949B1 (ko) | 2015-01-23 |
KR20140041450A (ko) | 2014-04-04 |
EP2687996A4 (en) | 2015-05-06 |
CN102622381B (zh) | 2013-11-13 |
US20140006918A1 (en) | 2014-01-02 |
WO2012122932A1 (zh) | 2012-09-20 |
EP2687996A1 (en) | 2014-01-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102622381B (zh) | 一种网页重排版的方法和*** | |
US10110695B1 (en) | Key resource prefetching using front-end optimization (FEO) configuration | |
CN106776761B (zh) | 一种移动浏览器渲染网页的方法及装置 | |
US9826052B2 (en) | Web page content loading control method and device | |
CN104798071B (zh) | 在雾计算架构中使用边缘服务器改善网站性能 | |
CN101226525B (zh) | 控制web页面的下载和显示的方法、服务器、客户端及*** | |
CN103593354A (zh) | 一种过滤网络页面广告的方法、装置、服务器及*** | |
CN102789454B (zh) | 一种浏览器网页中的输入框内容即时存储方法及*** | |
CN102622382A (zh) | 一种网页重排版的方法 | |
CN104035753A (zh) | 一种双WebView展示定制页面的方法及*** | |
CN103139292A (zh) | 在http代理中处理图片的方法、代理服务器及*** | |
CN1987851A (zh) | 一种网页数据的更新显示方法 | |
CN106817391A (zh) | 文件断点续传方法和装置 | |
CN104935666B (zh) | 一种用于移动端观看pdf文件的方法及*** | |
CN104052809A (zh) | 一种网站测试的分流控制方法和装置 | |
CN103761257B (zh) | 基于移动浏览器的网页处理方法及*** | |
CN104426863B (zh) | 一种页面请求方法、页面请求装置、中转服务器及终端 | |
CN102681996B (zh) | 预读方法和装置 | |
CN105468746B (zh) | 网页多媒体内容处理方法及装置 | |
CN103347069A (zh) | 网络访问的实现方法及装置 | |
CN103313285A (zh) | 网络资源传输处理装置和网络资源传输处理方法 | |
CN102694802B (zh) | 网络访问信息记录方法和装置 | |
CN103780649A (zh) | 在中转模式下提高用户翻页速度的方法、***及装置 | |
JP5735996B2 (ja) | 情報処理装置、サーバ装置、方法及びプログラム | |
KR101498920B1 (ko) | 오프라인 실행을 위한 웹 페이지 사전 캐싱 시스템 및 방법 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
C53 | Correction of patent of invention or patent application | ||
CB02 | Change of applicant information |
Address after: 100085 Beijing city Haidian District Qinghe Street No. 68 Huarun colorful city shopping center two floor 13 Applicant after: Xiaomi Technology Co., Ltd. Address before: 100102, 2, wing 2 North Wing Road, Beijing, Haidian District Applicant before: Beijing Xiaomi Technology Co., Ltd. |
|
GR01 | Patent grant |