CodeForge QQ客服 CodeForge 400电话 客服电话 4006316121
首页 » 源代码 » 页面层的页面性能。一个JS plungin

页面层的页面性能。一个JS plungin

xihuyu
发布于2016-05-19 01:37:42
源码作者
浏览次数:
下载次数:0
下载所需积分:1 
源码分类 Tags:
源码分类 所属分类:
AllAll

分享有礼! 》

  • 请点击右侧的分享按钮,把本代码分享到各社交媒体。
  • 通过您的分享链接访问Codeforge,每来2个新的IP,您将获得0.1 积分的奖励。
  • 通过您的分享链接,每成功注册一个用户,该用户在Codeforge上所获得的每1个积分,您都将获得0.2 积分的分成奖励。

代码介绍

hg_launcher_js :Now the web2.0 application ,the more neck segments are not only the database speed or the application or the servers slow or the net speed.Besides the browser performance .As we all known, the javascript eval speed is very slower than other language.And the resource ,one page can load in a scale. So if the resource load too more in one page, it may break the the page function.So we must have a new function , manage the resource in the page layer, not the service or the net. For this , the hg_launcher through the ajax to load resource ,then clear the old resource that not using for long time,or load the resource for new function. In the page layer ,resource manager will speed up the performance very well. some function like two below: 1. use the page tag, dynamic load resources like the js,css,img 2 when the resource in a special value, it will like a GC(Gabbage collection) ,clear some resource .

在现实的web应用中特别是web2.0的程序中,瓶颈已经不仅仅是后台的数据库操作速度,或者是相应的服务器的计算和逻辑运算时间,或者是网络的速度,而是前台的浏览器的性能的影响,众所周知JS的执行速度不是很理想,此外对于单个页面中载入的内容都是一个范围的,如果超出相应的内存使用量就会给整个使用比较卡的感觉。所以整个页面需要负载的均衡。比较浅显的实现就是控制页面内载入的JS,CSS,Img的内容量。如果超出了一个范围就相应的减少其中使用频率少,或者是已经没有使用的资源。这个就需要比较良好的算法和程序的设计才行。为了对页面内的资源完全的控制,我认为需要完全使用ajax的方式来获得后台的资源包括css,js,img的内容,这样才可以在载入的时候获得相应的实例从而起到很好的控制作用。 相应的功能点总结: 1. 根据前台的控件上的标记,来动态的调用后台的资源包括js,css,img资源 2. 在页面内的资源到了一个阀值的时候,设计类似GC(垃圾回收器)的那种机制,删除掉一些资源。

云测速

源码文件列表

温馨提示: 点击源码文件名可预览文件内容哦 ^_^
...
名称 大小 修改日期
HomeController.cs504.00 B30-07-11|16:23
ResourceController.cs8.66 kB30-07-11|16:27
ResourceRelationsController.cs10.38 kB30-07-11|16:27
vssver2.scc252.00 B30-07-11|16:33
AccountModels.cs8.65 kB30-07-11|16:23
DefaultValue.cs285.00 B30-07-11|16:23
HtmlHelpers.cs2.54 kB30-07-11|16:23
ResourceDB.cs6.13 kB30-07-11|16:23
ResourceRelationDB.cs8.33 kB30-07-11|16:23
ResourceRelationValidation.cs215.00 B30-07-11|16:23
ResourcesManager.dbml3.59 kB30-07-11|16:23
ResourcesManager.dbml.layout2.09 kB30-07-11|16:23
ResourcesManager.designer.cs19.88 kB30-07-11|16:23
ResourcesManager1.designer.cs19.89 kB30-07-11|16:23
ViewResource.cs719.00 B30-07-11|16:23
ViewResourceRelations.cs1.70 kB30-07-11|16:23
vssver2.scc612.00 B30-07-11|16:33
WebUtil.cs618.00 B30-07-11|16:23
ResourceManagerAreaRegistration.cs664.00 B30-07-11|16:23
About.aspx412.00 B30-07-11|16:23
Index.aspx548.00 B30-07-11|16:23
vssver2.scc186.00 B30-07-11|16:33
Create.aspx6.66 kB30-07-11|16:23
Details.aspx3.03 kB30-07-11|16:23
Edit.aspx6.68 kB30-07-11|16:23
Index.aspx4.19 kB30-07-11|16:23
vssver2.scc246.00 B30-07-11|16:33
Create.aspx2.45 kB30-07-11|16:23
Details.aspx1.65 kB30-07-11|16:23
Edit.aspx2.34 kB30-07-11|16:23
FindResource.aspx5.08 kB30-07-11|16:23
Index.aspx5.61 kB30-07-11|16:23
vssver2.scc289.00 B30-07-11|16:33
Error.aspx439.00 B30-07-11|16:23
LogOnUserControl.ascx241.00 B30-07-11|16:23
Site.Master1.27 kB30-07-11|16:32
vssver2.scc227.00 B30-07-11|16:33
vssver2.scc154.00 B30-07-11|16:33
Web.config1.53 kB30-07-11|16:23
vssver2.scc172.00 B30-07-11|16:33
hg_launcher_js.dll39.50 kB30-07-11|09:06
hg_launcher_js.pdb101.50 kB30-07-11|09:06
ClassDiagram1.cd430.00 B15-01-11|10:54
hg_launcher_js.css167.00 B28-05-11|13:51
test.css39.00 B12-02-11|11:20
test1.css39.00 B30-03-11|21:48
test2.css40.00 B30-03-11|21:48
vssver2.scc223.00 B28-07-11|16:00
loading-thickbox.gif5.75 kB28-05-11|13:44
test.png3.13 kB12-02-11|10:58
vssver2.scc173.00 B28-07-11|16:00
JSController.cs5.83 kB30-07-11|09:05
TestController.cs2.96 kB15-01-11|11:31
vssver2.scc177.00 B30-07-11|10:54
hg_launcher_js.mdf3.00 MB30-07-11|16:35
hg_launcher_js_log.ldf1.00 MB30-07-11|16:35
Global.asax106.00 B15-01-11|08:59
Global.asax.cs1.00 kB26-03-11|18:51
hg_launcher_js.csproj7.83 kB30-07-11|10:53
hg_launcher_js.csproj.user1.26 kB30-07-11|10:53
SQLHelper.cs148.24 kB26-02-11|14:18
vssver2.scc132.00 B28-07-11|16:00
CssObject.cs455.00 B12-02-11|11:01
Resource.cs3.11 kB30-07-11|09:05
ResourceObject.cs1.50 kB29-07-11|10:42
ResourceRelyGenerator.cs3.05 kB27-03-11|11:05
ResourceTableIn.cs675.00 B27-03-11|11:02
ScriptObject.cs461.00 B15-01-11|16:29
SQLResourceTableIm.cs9.00 kB27-03-11|11:05
Test.cs615.00 B15-01-11|11:14
vssver2.scc367.00 B30-07-11|10:54
all-wcprops661.00 B30-07-11|16:13
entries985.00 B30-07-11|16:13
hg_launcher_js.dll.svn-base53.00 B16-01-11|20:33
hg_launcher_js.pdb.svn-base53.00 B16-01-11|20:33
ResolveAssemblyReference.cache.svn-base53.00 B16-01-11|20:33
hg_launcher_js.csproj.FileListAbsolute.txt.svn-base1.43 kB25-03-11|19:35
hg_launcher_js.dll.svn-base39.50 kB30-07-11|16:12
hg_launcher_js.pdb.svn-base101.50 kB30-07-11|16:12
ResolveAssemblyReference.cache.svn-base15.80 kB25-03-11|19:35
hg_launcher_js.csproj.FileListAbsolute.txt1.43 kB27-03-11|11:10
hg_launcher_js.dll39.50 kB30-07-11|09:06
hg_launcher_js.pdb101.50 kB30-07-11|09:06
all-wcprops96.00 B28-02-11|11:04
entries237.00 B25-03-11|19:43
ResolveAssemblyReference.cache15.80 kB18-03-11|22:36
all-wcprops94.00 B16-01-11|20:37
entries235.00 B25-03-11|19:43
AssemblyInfo.cs1.37 kB15-01-11|08:59
vssver2.scc142.00 B28-07-11|16:00
hg_launcher_js.js19.77 kB30-07-11|10:50
hg_queue.js2.45 kB01-06-11|21:31
jquery-1.3.2-vsdoc.js197.79 kB15-01-11|08:59
jquery-1.3.2.js124.07 kB15-01-11|08:59
jquery-1.3.2.min-vsdoc.js197.79 kB15-01-11|08:59
jquery-1.3.2.min.js57.94 kB15-01-11|08:59
jquery.validate-vsdoc.js42.93 kB15-01-11|08:59
jquery.validate.js37.61 kB15-01-11|08:59
jquery.validate.min-vsdoc.js42.93 kB15-01-11|08:59
jquery.validate.min.js25.56 kB15-01-11|08:59
linfeng.js47.00 B27-02-11|12:30
MicrosoftAjax.debug.js303.55 kB15-01-11|08:59
MicrosoftAjax.js97.03 kB15-01-11|08:59
MicrosoftMvcAjax.debug.js14.66 kB15-01-11|08:59
MicrosoftMvcAjax.js5.64 kB15-01-11|08:59
MicrosoftMvcValidation.debug.js36.49 kB15-01-11|08:59
MicrosoftMvcValidation.js13.04 kB15-01-11|08:59
test.js49.00 B16-01-11|19:51
test1.js50.00 B30-03-11|21:49
test2.js44.00 B30-03-11|21:49
vssver2.scc1.27 kB30-07-11|10:54
Index.aspx1.18 kB30-07-11|08:54
vssver2.scc135.00 B30-07-11|10:54
IndexControl.ascx120.00 B15-01-11|10:50
vssver2.scc146.00 B28-07-11|16:00
Create.aspx1.62 kB15-01-11|11:08
Details.aspx972.00 B15-01-11|11:11
Edit.aspx1.61 kB15-01-11|11:08
Index.aspx3.47 kB25-03-11|22:17
vssver2.scc220.00 B28-07-11|16:00
vssver2.scc132.00 B28-07-11|16:00
Web.config1.53 kB15-01-11|08:59
Web.config11.36 kB30-07-11|16:27
prop-base0.00 B28-02-11|11:01
props0.00 B28-02-11|11:01
text-base0.00 B28-02-11|11:01
prop-base0.00 B28-02-11|11:01
props0.00 B28-02-11|11:01
text-base0.00 B28-02-11|11:01
prop-base0.00 B28-02-11|11:01
props0.00 B28-02-11|11:01
text-base0.00 B30-07-11|16:13
prop-base0.00 B28-02-11|10:58
props0.00 B28-02-11|10:58
text-base0.00 B28-02-11|10:58
tmp0.00 B30-07-11|16:13
prop-base0.00 B16-01-11|20:33
props0.00 B16-01-11|20:33
text-base0.00 B16-01-11|20:33
tmp0.00 B30-07-11|16:13
Home0.00 B30-07-11|16:33
Resource0.00 B30-07-11|16:33
ResourceRelations0.00 B30-07-11|16:33
Shared0.00 B30-07-11|16:33
prop-base0.00 B30-07-11|16:13
props0.00 B16-01-11|20:37
text-base0.00 B30-07-11|16:13
tmp0.00 B30-07-11|16:13
.svn0.00 B30-07-11|16:13
.svn0.00 B30-07-11|16:13
Controllers0.00 B30-07-11|16:33
Models0.00 B30-07-11|16:33
Views0.00 B30-07-11|16:33
.svn0.00 B30-07-11|16:13
Refactor0.00 B30-07-11|16:13
TempPE0.00 B30-07-11|16:13
ResourceManager0.00 B30-07-11|16:33
css0.00 B30-07-11|16:14
img0.00 B30-07-11|16:14
Debug0.00 B30-07-11|16:13
JS0.00 B30-07-11|16:15
Shared0.00 B30-07-11|16:16
Test0.00 B30-07-11|16:16
Areas0.00 B30-07-11|16:33
bin0.00 B30-07-11|16:13
Content0.00 B30-07-11|16:14
Controllers0.00 B30-07-11|16:14
db0.00 B30-07-11|16:35
Lib0.00 B30-07-11|16:14
Models0.00 B30-07-11|16:14
obj0.00 B30-07-11|16:14
Properties0.00 B30-07-11|16:14
Scripts0.00 B30-07-11|16:33
Views0.00 B30-07-11|16:15
hg_launcher_js1.2.1_released0.00 B30-07-11|16:34
云测速

资源评论

(提交有效评论获得积分)
评论内容不能少于15个字,不要超出160个字。
  • 1
  • 第1页
  • 共1页

页面层的页面性能。一个JS plungin (1.03 MB)

需要 1 积分
您持有 积分

CodeForge积分(原CF币)全新升级,功能更强大,使用更便捷,不仅可以用来下载海量源代码马上还可兑换精美小礼品了 了解更多

您的积分不足,优惠套餐快速获取 30 积分

订单支付完成后,积分将自动加入到您的账号。以下是优惠期的人民币价格,优惠期过后将恢复美元价格。

更多付款方式:网银PayPal

上传代码,免费获取CodeForge积分

您本次下载所消耗的积分将转交上传作者。

同一源码,30天内重复下载,只扣除一次积分。

登录 CodeForge

还没有CodeForge账号? 立即注册
关注微博
联系客服

Switch to the English version?

Yes
CodeForge 英文版
No
CodeForge 中文版

完善个人资料,获价值¥30元积分奖励!

^_^"呃 ...

Sorry!这位大神很神秘,未开通博客呢,请浏览一下其他的吧
好的