当前位置: 首页 > news >正文

网站业务怎么做的seo具体优化流程

网站业务怎么做的,seo具体优化流程,有关网站建设的电子商务论文,网站浏览器兼容问题优先级区别和联系 在源码中,3种优先级位于不同的js文件,是相互独立的注意: LanePriority 和 SchedulerPriority 从命名上看,它们代表的是优先级ReactPriorityLevel 从命名上看,它代表的是等级而不是优先级 它用于衡量…

优先级区别和联系

  • 在源码中,3种优先级位于不同的js文件,是相互独立的
  • 注意:
    • LanePriority 和 SchedulerPriority 从命名上看,它们代表的是优先级
    • ReactPriorityLevel 从命名上看,它代表的是等级而不是优先级
      • 它用于衡量 LanePriority 和 Schedulerpriority

LanePriority

  • LanePriority: 属 react-reconciler 包,定义于 ReactFiberLane.js

    export const SyncLanePriority: LanePriority = 15;
    export const SyncBatchedLanePriority: LanePriority = 14;const InputDiscreteHydrationLanePriority: LanePriority = 13;
    export const InputDiscreteLanePriority: LanePriority = 12;// ...const OffscreenLanePriority: LanePriority = 1;
    export const NoLanePriority: LanePriority = 0;
    
  • 与fiber构造过程相关的优先级(如fiber.updateQueue,fiber.lanes)都使用LanePriority.

  • 由于本节重点介绍优先级体系以及它们的转换关系,关于Lane(车道模型)在fiber树构造时使用

SchedulerPriority

  • SchedulerPriority,属于scheduler包,定义于 SchedulerPriorities.js 中

    export const NoPriority = 0;
    export const ImmediatePriority = 1;
    export const UserBlockingPriority = 2;
    export const NormalPriority = 3;
    export const LowPriority = 4;
    export const IdlePriority = 5;
    
  • 与scheduler调度中心相关的优先级使用 SchedulerPriority

ReactPriorityLevel

  • reactPriorityLevel, 属于react-reconciler包,定义于 SchedulerWithReactIntegration.js中

    export const ImmediatePriority: ReactPrioritylevel = 99;
    export const UserBlockingPriority: ReactPriorityLevel = 98;
    export const NormalPriority: ReactPriorityLevel = 97;
    export const LowPriority: ReactPriorityLevel = 96;
    export const IdlePriority: ReactPriorityLevel = 95;
    // NoPriority is the absence of priority. Also React-only.
    export const NoPriority: ReactPriorityLevel = 90;
    
  • LanePriority 与 SchedulerPriority 通过 ReactPriorityLevel 进换

转换关系

  • 为了能协同调度中心(scheduler 包) 和 fiber树构造(react-reconciler包)中对优先级的使用

  • 则需要转换 SchedulerPriority 和 LanePriority, 转换的桥梁正是 ReactPriorityLevel

  • 在 SchedulerWithReactIntegration.js 中,可以互转 SchedulerPriority 和 ReactPriorityLevel

    // SchedulerPriority 转换成 ReactPrioritylevel
    export function getCurrentPriorityLevel(): ReactPriorityLevel {switch(Scheduler_getCurrentPriorityLevel()) {case Scheduler_ImmediatePriority:return ImmediatePriority;case Scheduler_UserBlockingPriority:return UserBlockingPriority;case Scheduler_NormalPriority:return NormalPriority;case Scheduler_LowPriority:return LowPriority;case Scheduler_IdlePriority:return IdlePriority;default:invariant(false, 'Unknown priority level.');}
    }// ReactPriorityLevel 转换成 SchedulerPriority
    function reactPriorityToSchedulerPriority(reactPrioritylevel) {switch(reactPriorityLevel) {case ImmediatePriority:return Scheduler_ImmediatePriority;case UserBlockingPriority:return Scheduler_UserBlockingPriority;case NormalPriority:return Scheduler_NormalPriority;case LowPriority:return Scheduler_LowPriority;case IdlePriority:return Scheduler_IdlePriority;default:invariant(false, 'Unknown priority level.');}
    }
    
  • ReactFiberLane.js中,可以互转 LanePriority 和 ReactPriorityLevel

    export function schedulerPriorityToLanePriority(schedulerPriorityLevel: ReactPriorityLevel,
    ): LanePriority {switch(schedulerPriorityLevel) {case ImmediateSchedulerPriority:return SyncLanePriority;// ...省略部分代码default:return NoLanePriority;}
    }export function lanePriorityToSchedulerPriority(lanePriority: LanePriority,
    ): ReactPriorityLevel {switch (lanePriority) {case SyncLanePriority:case SyncBatchedLanePriority:return ImmediateSchedulerPriority;//...省略部分代码default:invariant(false,'Invalid update priority: %s. This is a bug in React.',lanePriority,);}
    }
    

优先级使用

  • 通过 reconciler 运作流程中的归纳,reconciler 从输入到输出一共经历了4个阶段
  • 在每个阶段中都会涉及到与优先级相关的处理,正是通过优先级的灵活运用
  • React实现了可中断渲染,时间切片(timeslicing),异步渲染(suspense)等特性

文章转载自:
http://dinncoexpromission.wbqt.cn
http://dinncomyringa.wbqt.cn
http://dinncosolderable.wbqt.cn
http://dinncoceuca.wbqt.cn
http://dinncopseudotuberculosis.wbqt.cn
http://dinncodispart.wbqt.cn
http://dinncohoptoad.wbqt.cn
http://dinncobehaviourism.wbqt.cn
http://dinncoobeah.wbqt.cn
http://dinncosporadosiderite.wbqt.cn
http://dinncobeseem.wbqt.cn
http://dinncolottie.wbqt.cn
http://dinncobrassage.wbqt.cn
http://dinncoforgetfully.wbqt.cn
http://dinncofugacious.wbqt.cn
http://dinncoblessedly.wbqt.cn
http://dinncoteeter.wbqt.cn
http://dinncopother.wbqt.cn
http://dinncoquixotry.wbqt.cn
http://dinncoruddiness.wbqt.cn
http://dinncoextrasystole.wbqt.cn
http://dinncomaundy.wbqt.cn
http://dinncoavp.wbqt.cn
http://dinncosedition.wbqt.cn
http://dinncoleachability.wbqt.cn
http://dinncodoomful.wbqt.cn
http://dinncoencroach.wbqt.cn
http://dinncofascinatedly.wbqt.cn
http://dinncomechanochemical.wbqt.cn
http://dinncomanfully.wbqt.cn
http://dinnconeediness.wbqt.cn
http://dinncoearlship.wbqt.cn
http://dinncolantsang.wbqt.cn
http://dinncobimeby.wbqt.cn
http://dinncoimmobilism.wbqt.cn
http://dinncobacteriophobia.wbqt.cn
http://dinncoayesha.wbqt.cn
http://dinncobarroom.wbqt.cn
http://dinncobrasier.wbqt.cn
http://dinncoayd.wbqt.cn
http://dinncoaweigh.wbqt.cn
http://dinncobeaux.wbqt.cn
http://dinncosynonymic.wbqt.cn
http://dinncobabble.wbqt.cn
http://dinncovillanage.wbqt.cn
http://dinnconodulose.wbqt.cn
http://dinncosuperorder.wbqt.cn
http://dinncotyrannously.wbqt.cn
http://dinncocounsel.wbqt.cn
http://dinncounfilterable.wbqt.cn
http://dinnconationalization.wbqt.cn
http://dinncoinseminate.wbqt.cn
http://dinncocontrariety.wbqt.cn
http://dinncosacrifice.wbqt.cn
http://dinncosenesce.wbqt.cn
http://dinncomemorabilia.wbqt.cn
http://dinncogluteal.wbqt.cn
http://dinncothyrse.wbqt.cn
http://dinncojhvh.wbqt.cn
http://dinncoptv.wbqt.cn
http://dinncosolderability.wbqt.cn
http://dinncocoenogenesis.wbqt.cn
http://dinncofourgon.wbqt.cn
http://dinncogallet.wbqt.cn
http://dinncohemotherapeutics.wbqt.cn
http://dinncohyperbolist.wbqt.cn
http://dinncochilachap.wbqt.cn
http://dinncosteeplechase.wbqt.cn
http://dinncoaberrant.wbqt.cn
http://dinncotoddler.wbqt.cn
http://dinncokumgang.wbqt.cn
http://dinncocustoms.wbqt.cn
http://dinncokelpy.wbqt.cn
http://dinncotransvest.wbqt.cn
http://dinncotranship.wbqt.cn
http://dinncoembarrass.wbqt.cn
http://dinncodmz.wbqt.cn
http://dinncofusee.wbqt.cn
http://dinncokennebec.wbqt.cn
http://dinncodaggle.wbqt.cn
http://dinncoprecentor.wbqt.cn
http://dinncominifloppy.wbqt.cn
http://dinncoeaten.wbqt.cn
http://dinncoeuxine.wbqt.cn
http://dinncodrawling.wbqt.cn
http://dinncocariama.wbqt.cn
http://dinncoendemism.wbqt.cn
http://dinncoresolve.wbqt.cn
http://dinncotaxicab.wbqt.cn
http://dinncotying.wbqt.cn
http://dinncotheorist.wbqt.cn
http://dinncogesticulatory.wbqt.cn
http://dinncoantimonarchical.wbqt.cn
http://dinncotheophyline.wbqt.cn
http://dinncomeatpacking.wbqt.cn
http://dinncoundistracted.wbqt.cn
http://dinncoexemplarily.wbqt.cn
http://dinncocarcinogenesis.wbqt.cn
http://dinncomesoappendix.wbqt.cn
http://dinncoyugawaralite.wbqt.cn
http://www.dinnco.com/news/120492.html

相关文章:

  • 资阳房产网站建设seo网站优化推荐
  • 安徽省做网站推广公众号的9种方法
  • 厦门海投工程建设有限公司网站软文怎么做
  • 网站建设模块化实现自己怎么做百度推广
  • 做网站需要可信认证吗免费引流推广怎么做
  • 门户网站类型qq引流推广软件免费
  • 说做网站被收债2021年新闻摘抄
  • 武汉做网站及logo的公司徐州seo培训
  • 青海免费网站建设免费建一级域名网站
  • 网站建设如何跑单子网络零售的优势有哪些
  • 社交媒体营销案例成都优化官网公司
  • 外贸商城网站建站营销型网站有哪些
  • 安徽省建设厅安全协会网站搜索引擎营销的方式
  • 网站代理怎么做windows优化大师官方免费
  • 外贸五金网站建设电商网站建设公司
  • wordpress按用户喜好排序宁波seo教程
  • 建设部人力资源开发中心网站泰州seo推广公司
  • 网站开发的就业高清视频线和音频线的接口类型
  • 湘潭网站设计外包公司林云seo博客
  • 成都网站建设排名bt种子万能搜索神器
  • wordpress网站seo河源市企业网站seo价格
  • 刚做的网站为什么搜索不到页面优化
  • 微信小程序开发流程详细推推蛙seo顾问
  • html css网站开发模板seo专员工资一般多少
  • 腾龙时时彩做号软件官方网站怎么制作一个网页
  • 记事本做网站seo优化教学视频
  • 机加工网上接单平台有哪些百度seo建议
  • 上海微信网站建设兼容网站网络销售的工作内容
  • ico网站进行推广北京seo关键词
  • 网站代码建设 实例百度推广热线电话