神刀安全网

Improving Angular performance with 1 line of code

Improving Angular performance with 1 line of code

Improving Angular performance with 1 line of code
myApp.config(['$compileProvider', function ($compileProvider) {
$compileProvider.debugInfoEnabled(false);
}]);

I’m on Genius.com and I right click over some text and click “Inspect Element” for I’m not sure what reason, as any good web developer does. Generally, I’ll see nothing particularly interesting as I’m reviewing the elements that comprise the fabric of our modern WWW; usually it’s divs in divs in divs and about 100 classes per each (and that’s fine as far as this developer is concerned). On this site, however, something caught my eye.

Let me show you what that I saw:

Improving Angular performance with 1 line of code

So you see what I did, of course you do. Straight from your Retina Display to your retinas…

In case your friends can’t see it, you can show them this annotated image:

Improving Angular performance with 1 line of code

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » Improving Angular performance with 1 line of code

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址