mershon-enterprises / website

Company website
1 stars 1 forks source link

Gruntfile rewrite #14

Closed devinleonhart closed 9 years ago

devinleonhart commented 9 years ago

@kevinmershon For your review.

In order to get performance increases, we had to sacrifice some automation in our build tools.

Wiredep is gone so it would not automatically add angular and jquery references. CDNify now can target those explicit includes and replace them with google URLs. Other dependencies are no longer condensed into a vendor.js and instead load concurrently with bowercopy. Custom uglify rules were added to minify them.

This means that if we add dependencies, we now have to update urls for them in three places. The include, the bower copy, and the uglify config blocks.

However, it should be said that none of that helped the artifact popping issue. If we want these back, all we have to do is add only 9215ad058003fe9c56086cd09f2bd0e4649f3e1a and ignore the rest. The difference is about 500ms of load time.