[openspending-dev] Satellite sites and minimizing
Nigel Babu
nigel.babu at okfn.org
Sat Mar 16 01:08:27 UTC 2013
Hi folks,
Just an update: I tested this out today, minimizing all the dailybread
related css and js with jekyll-assets-pipeline[1], and I have surprising
(at least, for me) results. Using yepnope[2] (that's what we're doing now)
is faster than using one big compressed js file. And I've also discovered
the reason for this - yepnope downloads in parallel.
[1] https://github.com/matthodan/jekyll-asset-pipeline/
[2] http://yepnopejs.com/
Nigel
On 8 March 2013 23:07, Vitor Baptista <vitor at vitorbaptista.com> wrote:
> Hi Nigel,
>
> I like your idea. I wouldn't minify third-party libraries, though,
> changing them to use CDN's versions (be it Google or cdnjs.com), only
> minifying our files. Have you ever used grunt.js? It might help us automate
> this process.
>
> Cheers,
> Vítor.
>
> 2013/3/8 Nigel Babu <nigel.babu at okfn.org>
>
>> Hi folks,
>>
>> We don't really minimize our JS or CSS files on any of the satellite
>> sites, leading to, often fetching 10 files from 2 different places.
>>
>> I've been thinking of having openspending.js as a submodule in the repos
>> of satellite sites and using require.js to selectively include the JS files
>> from openspendingjs as needed and also to minimize them.
>>
>> Has anyone looked into this before? Anyone has warnings or words of
>> advice?
>>
>> Nigel
>>
>> _______________________________________________
>> openspending-dev mailing list
>> openspending-dev at lists.okfn.org
>> http://lists.okfn.org/mailman/listinfo/openspending-dev
>> Unsubscribe: http://lists.okfn.org/mailman/options/openspending-dev
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/openspending-dev/attachments/20130316/d46c7687/attachment.html>
More information about the openspending-dev
mailing list