-
Notifications
You must be signed in to change notification settings - Fork 298
Expand file tree
/
Copy pathindex.html
More file actions
1369 lines (415 loc) · 43.9 KB
/
index.html
File metadata and controls
1369 lines (415 loc) · 43.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>Here. There.</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=3, minimum-scale=1">
<meta name="author" content="被删">
<meta name="description" content="html5, js, angularjs, jQuery, 前端">
<link rel="alternate" href="/atom.xml" title="Here. There." type="application/atom+xml">
<link rel="icon" href="/img/favicon.ico">
<link rel="apple-touch-icon" href="/img/pacman.jpg">
<link rel="apple-touch-icon-precomposed" href="/img/pacman.jpg">
<link rel="stylesheet" href="/css/style.css">
<script type="text/javascript">
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?3d902de4a19cf2bf179534ffd2dd7b7f";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<meta name="generator" content="Hexo 6.3.0"></head>
<body>
<header>
<div>
<div id="imglogo">
<a href="/"><img src="/img/sun.png" alt="Here. There." title="Here. There."/></a>
</div>
<div id="textlogo">
<h1 class="site-name"><a href="/" title="Here. There.">Here. There.</a></h1>
<h2 class="blog-motto">Love ice cream. Love sunshine. Love life. Love the world. Love myself. Love you.</h2>
</div>
<div class="navbar"><a class="navbutton navmobile" href="#" title="菜单">
</a></div>
<nav class="animated">
<ul>
<li><a href="/">首页</a></li>
<li><a target="_blank" rel="noopener" href="https://github.com/godbasin/godbasin.github.io">所有文章</a></li>
<li><a href="/archives">归档</a></li>
<li><a href="/categories">分类</a></li>
<li><a href="https://godbasin.github.io/front-end-playground">前端游乐场</a></li>
<li><a href="/about">关于我</a></li>
</ul>
</nav>
</div>
</header>
<div id="container">
<div id="main" class="all-list-box">
<section class="post" itemscope itemprop="blogPost">
<a href="/2026/01/01/2026-programer/" title="2026 程序员指南" itemprop="url">
<h1 itemprop="name">2026 程序员指南</h1>
<p itemprop="description" >2025 年大概是 AI 在各个场景的应用很让人吃惊的一年了。</p>
<time datetime="2026-01-01T07:00:27.000Z" itemprop="datePublished">2026-01-01</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2025/12/21/how-to-manage-front-end-project/" title="如何提升项目管理能力" itemprop="url">
<h1 itemprop="name">如何提升项目管理能力</h1>
<p itemprop="description" >前面在《如何设计与管理一个前端项目》一文中,提到过需要做风险把控、事后复盘、数据量化,但具体怎么执行呢?本文主要结合以前的实战经验进行说明。</p>
<time datetime="2025-12-21T06:25:12.000Z" itemprop="datePublished">2025-12-21</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2025/11/01/front-end-performance-website-complexity-design/" title="前端性能优化--网页复杂度设计" itemprop="url">
<h1 itemprop="name">前端性能优化--网页复杂度设计</h1>
<p itemprop="description" >关于复杂度,相信所有开发都了解这个词。毕竟准备面试过程中,多少都会刷刷题,了解过算法复杂度这个词。
今天想聊的,是关于网页复杂度的一些想法。
怎样算复杂?相信经常看我写的性能相关文章的小伙伴都知道,复杂的前端应用、大型前端应用这个词经常会出现在我的文章里。
是的,我经常说像在线文</p>
<time datetime="2025-11-01T13:03:02.000Z" itemprop="datePublished">2025-11-01</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2025/10/07/front-end-performance-website-quality-score/" title="前端性能优化--网页质量得分" itemprop="url">
<h1 itemprop="name">前端性能优化--网页质量得分</h1>
<p itemprop="description" >提到网页得分,相信很多做过性能的前端同学,也都有用过 Lighthouse 的性能评分。
而在更复杂的业务场景下,类似 Lighthouse 这样的工具只能提供打开相关的性能数据。对于重度使用的前端网页来说,或许我们还需要更详细的参考标准。
Lighthouse 性能得分其实我们</p>
<time datetime="2025-10-07T14:47:22.000Z" itemprop="datePublished">2025-10-07</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2025/09/06/front-end-basic-js-eventloop/" title="前端基础补齐--有关 JavaScript 单线程" itemprop="url">
<h1 itemprop="name">前端基础补齐--有关 JavaScript 单线程</h1>
<p itemprop="description" >上一篇《前端基础补齐–有关 JavaScript 代码执行》我给大家介绍了 JavaScript 代码的运行过程。如果说运行过程中的语法分析阶段、编译阶段和执行阶段属于微观层面的运行逻辑,那么本文将了解宏观角度下的 JavaScript 运行过程,包括 JavaScript 的单</p>
<time datetime="2025-09-06T13:01:34.000Z" itemprop="datePublished">2025-09-06</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2025/08/09/front-end-basic-js-engine/" title="前端基础补齐--有关 JavaScript 代码执行" itemprop="url">
<h1 itemprop="name">前端基础补齐--有关 JavaScript 代码执行</h1>
<p itemprop="description" >上一篇《前端基础补齐–有关 JavaScript 继承》我们介绍了 JavaScript 的原型和继承,JavaScript 作为基于对象的编程语言,原型和继承是它的一大特点,理解 JavaScript 的继承方式有助于我们对代码进行更好的设计和优化。
除此之外,JavaScri</p>
<time datetime="2025-08-09T02:25:21.000Z" itemprop="datePublished">2025-08-09</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2025/07/06/front-end-basic-js-extend/" title="前端基础补齐--有关 JavaScript 继承" itemprop="url">
<h1 itemprop="name">前端基础补齐--有关 JavaScript 继承</h1>
<p itemprop="description" >我们都知道,前端页面中HTML用于描述页面结构,CSS用于装饰页面样式,这两者结合得到一个暂时还没办法和用户交互的静态页面。为了使得页面能接收用户的输入,然后进行相应的反馈,我们需要用到JavaScript。
如今前端项目规模越来越大,架构也越来越复杂,甚至在一些项目中我们都接触</p>
<time datetime="2025-07-06T13:14:11.000Z" itemprop="datePublished">2025-07-06</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2025/06/15/render-engine-downgrate-render/" title="复杂渲染引擎架构与设计--10.降级渲染" itemprop="url">
<h1 itemprop="name">复杂渲染引擎架构与设计--10.降级渲染</h1>
<p itemprop="description" >前面我们在《复杂渲染引擎架构与设计–6.增量计算》一文中介绍了滚动过程中的增量渲染方案,通过减少渲染计算量或绘制量的方式,来提升页面滚动的流畅度。
除此之外,当滚动距离较远时,增量渲染并不能达到预期的优化效果,此时我看还需要考虑降级渲染。
页面内的元素优先级划分当用户打开一个大的</p>
<time datetime="2025-06-15T10:22:21.000Z" itemprop="datePublished">2025-06-15</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2025/05/09/render-engine-pre-calculate/" title="复杂渲染引擎架构与设计--9.预热计算" itemprop="url">
<h1 itemprop="name">复杂渲染引擎架构与设计--9.预热计算</h1>
<p itemprop="description" >前面我们在《复杂渲染引擎架构与设计–5.分片计算》一文中介绍了分片计算,即将需要计算的内容进行拆分,拆分成约每 50 ms 一个的任务。
在这个方案中,我们维护了一个待计算区域,将页面中所有未完成的计算任务放在里面,等待异步每个计算任务进行计算。
全量计算的性能瓶颈《复杂渲染引擎</p>
<time datetime="2025-05-09T12:22:21.000Z" itemprop="datePublished">2025-05-09</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2025/04/10/front-end-performance-preload-order/" title="前端性能优化--预加载顺序设计" itemprop="url">
<h1 itemprop="name">前端性能优化--预加载顺序设计</h1>
<p itemprop="description" >随着互联网的迅速发展,现在我们前端应用能做的事情也越来越多了。随之而来的便是复杂和大数据内容的网页渲染,因此很多时候我们为了尽快给用户看到网页内容,会将页面加载拆分成首屏和其他内容。
当首屏内容渲染完后,我们会进行后续内容的预加载处理。
页面预加载对于重文本、列表、表格等网页内容</p>
<time datetime="2025-04-10T14:29:12.000Z" itemprop="datePublished">2025-04-10</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2025/03/09/front-end-performance-fps-monitor/" title="前端性能优化--FPS页面流畅度" itemprop="url">
<h1 itemprop="name">前端性能优化--FPS页面流畅度</h1>
<p itemprop="description" >之前分享过不少关于前端卡顿检测的内容,实际上在前端应用里,FPS 也是我们常用的一个页面流畅度的指标。
除了前面介绍的卡顿检测之外,我们还可以使用 FPS 来辅助定义用户体验。
前端页面 FPS我们都知道,帧率(英语:frame rate)是用于测量显示帧数的度量。
FPS 则是</p>
<time datetime="2025-03-09T13:32:31.000Z" itemprop="datePublished">2025-03-09</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2025/02/09/front-end-performance-fast-properties/" title="前端性能优化--JavaScript 引擎性能" itemprop="url">
<h1 itemprop="name">前端性能优化--JavaScript 引擎性能</h1>
<p itemprop="description" >#
或许你在做性能优化的时候有听说过——尽量避免使用delete,但是为什么呢?
这涉及到 v8 引擎的几个概念:快属性(fast properties)、隐藏类(hidden Classes)、内联缓存(IC)等。讲述 v8 引擎的文章很多,因此本文会简单进行介绍,然后以此说</p>
<time datetime="2025-02-09T02:57:12.000Z" itemprop="datePublished">2025-02-09</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2025/01/02/front-end-performance-binary-attribute/" title="前端性能优化--二进制压缩数据内容" itemprop="url">
<h1 itemprop="name">前端性能优化--二进制压缩数据内容</h1>
<p itemprop="description" >今天也是来介绍一种性能优化的具体方式,使用二进制存储特定数据,来降低内存占用、后台存储和传输成本。
二进制数据设计当我们需要描述某种数据的许多状态时,可以考虑使用二进制的方式优化。
简单来说,就是使用二进制数字1和0来表示单个状态,然后使用二进制数字来表示多种状态的组合,比如10</p>
<time datetime="2025-01-02T13:34:23.000Z" itemprop="datePublished">2025-01-02</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2024/12/27/front-end-performance-code-detail/" title="前端性能优化--代码习惯" itemprop="url">
<h1 itemprop="name">前端性能优化--代码习惯</h1>
<p itemprop="description" >大多数情况下,前端很少遇到性能瓶颈。但如果在大型前端项目、数据量百万千万的场景下,有时候一些毫不起眼的代码习惯也可能会带来性能问题。
今天来简单介绍几种,大家在写代码的时候也可以注意。
代码细节与性能减少函数拆解很多时候,为了提高代码复用率以及提升代码可读性,我们习惯地将一些相同</p>
<time datetime="2024-12-27T15:25:12.000Z" itemprop="datePublished">2024-12-27</time>
</a>
</section>
<section class="post" itemscope itemprop="blogPost">
<a href="/2024/11/06/front-end-performance-flyweight-pattern/" title="前端性能优化--享元模式" itemprop="url">
<h1 itemprop="name">前端性能优化--享元模式</h1>
<p itemprop="description" >之前讲到性能优化,大多数介绍的都是耗时上的一些优化,比如页面打开更快、用户交互响应更快等。不过,在最开始的《前端性能优化–归纳篇》一文中有说过,前端性能优化可以从两个角度来衡量:时间和空间,今天介绍的享元模式则用于空间下内存占用的优化。
享元模式享元是一种设计模式,通过共享对象的</p>
<time datetime="2024-11-06T12:51:10.000Z" itemprop="datePublished">2024-11-06</time>
</a>
</section>
<nav id="page-nav" class="clearfix">
<span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="page-number" href="/page/3/">3</a><span class="space">…</span><a class="page-number" href="/page/25/">25</a><a class="extend next" rel="next" href="/page/2/">Next &raquo;</a>
</nav>
</div>
<div class="openaside"><a class="navbutton" href="#" title="显示侧边栏"></a></div>
<div id="asidepart">
<div class="closeaside"><a class="closebutton" href="#" title="隐藏侧边栏"></a></div>
<aside class="clearfix">
<div class="archiveslist">
<p class="asidetitle">最近文章</p>
<ul class="archive-list">
<li class="archive-list-item">
<a class="archive-list-link" href="/2026/01/01/2026-programer/" title="2026 程序员指南">2026 程序员指南</a>
</li>
<li class="archive-list-item">
<a class="archive-list-link" href="/2025/12/21/how-to-manage-front-end-project/" title="如何提升项目管理能力">如何提升项目管理能力</a>
</li>
<li class="archive-list-item">
<a class="archive-list-link" href="/2025/11/01/front-end-performance-website-complexity-design/" title="前端性能优化--网页复杂度设计">前端性能优化--网页复杂度设计...</a>
</li>
<li class="archive-list-item">
<a class="archive-list-link" href="/2025/10/07/front-end-performance-website-quality-score/" title="前端性能优化--网页质量得分">前端性能优化--网页质量得分...</a>
</li>
<li class="archive-list-item">
<a class="archive-list-link" href="/2025/09/06/front-end-basic-js-eventloop/" title="前端基础补齐--有关 JavaScript 单线程">前端基础补齐--有关 JavaScr...</a>
</li>
<li class="archive-list-item">
<a class="archive-list-link" href="/2025/08/09/front-end-basic-js-engine/" title="前端基础补齐--有关 JavaScript 代码执行">前端基础补齐--有关 JavaScr...</a>
</li>
<li class="archive-list-item">
<a class="archive-list-link" href="/2025/07/06/front-end-basic-js-extend/" title="前端基础补齐--有关 JavaScript 继承">前端基础补齐--有关 JavaScr...</a>
</li>
<li class="archive-list-item">
<a class="archive-list-link" href="/2025/06/15/render-engine-downgrate-render/" title="复杂渲染引擎架构与设计--10.降级渲染">复杂渲染引擎架构与设计--10.降级...</a>
</li>
<li class="archive-list-item">
<a class="archive-list-link" href="/2025/05/09/render-engine-pre-calculate/" title="复杂渲染引擎架构与设计--9.预热计算">复杂渲染引擎架构与设计--9.预热计...</a>
</li>
<li class="archive-list-item">
<a class="archive-list-link" href="/2025/04/10/front-end-performance-preload-order/" title="前端性能优化--预加载顺序设计">前端性能优化--预加载顺序设计...</a>
</li>