Thursday, June 18, 2015

#Javascript  deployment question: When I write a lib, say foobar.js, I put it in my HTML as

#Javascript  deployment question: When I write a lib, say foobar.js, I put it in my HTML as <script src="foobar.js?reload"></script>, which codes it as dynamic and downloads it again each time.

I'm finding points currently where a user is having a problem with a web tool I wrote, so I come up, hit Ctrl-Shift-R and it works. But changes shouldn't be like that.

So, I think that, while I'm developing, it can be foobar.js?reload if I need, but when it's ready to go, I should call it foobar-1.23.js. 

Or, perhaps foobar-1.23.min.js. All this started up when I started playing with yui-compressor this morning, so that's a think I'm looking to do again.

No comments:

Post a Comment