johndwells / Minimee

Minimize & combine your CSS and JS files. Minify your HTML. Because size (still) DOES matter.
http://johndwells.github.com/Minimee
56 stars 16 forks source link

How to cache,minify and compress external js and css #12

Closed w3nisar closed 10 years ago

w3nisar commented 11 years ago

Hi, I am using EE v2.5.2 and Minimee 2.1.3 for one of my project.I am able to load the internal css and js using Minimee,but not able to load external js files like jquery,twitter.js etc. In the documentation (http://johndwells.github.com/Minimee/),it says

->cURL or file_get_contents() is required if using {stylesheet=} or external URLs ->If using file_get_contents(), PHP must be compiled with support for fopen wrappers (allow_url_fopen must be set to true in PHP.ini) ->If using file_get_contents() and combining/minifying files over https, PHP must be compiled with OpenSSL support.

But I could not found any example on how to load external js.There is an example on how load internal js like

{exp:minimee:js}

<script type="text/javascript" src="/js/mylibs/jquery.cycle.js"></script>
<script type="text/javascript" src="/js/mylibs/jquery.forms.js"></script>
<script type="text/javascript" src="/js/scripts.js"></script>
<script type="text/javascript" src="/js/plugins.js"></script>

{/exp:minimee:js}

Can anyone please help me to load minified,cached and compressed external Js or CSS in my site.

I am using

I want these two js to be loaded using Minimee.

Thanks

johndwells commented 10 years ago

Hi,

Apologies for never seeing this issue, I assume that you managed to work out the correct syntax?

Cheers, John