Link to home
Start Free TrialLog in
Avatar of Mike Eghtebas
Mike EghtebasFlag for United States of America

asked on

replace minified JavaScript with http://...

Q: How to replace minified version in te following lines with online URLs?

I guess this applies to lines 3 through 6, correct?

<script src="http://code.jquery.com/jquery.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="js/bootstrap.js"></script>
<script src="plugins/fancybox/jquery.fancybox.js"></script>
<script type="text/javascript" src="plugins/fancybox/helpers/jquery.fancybox-buttons.js?v=1.0.5"></script>
<script type="text/javascript" src="plugins/fancybox/helpers/jquery.fancybox-media.js?v=1.0.6"></script>
<script>
$(function() {
  $('.fancybox').fancybox();
});
</script>

Open in new window

Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Minified scripts usually have the word 'min' in them somewhere.  I don't see that there.  You can open those script files in the view source in Firefox and see what's there.
Avatar of Mike Eghtebas

ASKER

Ok, take line 4, for example:

<script src="plugins/fancybox/jquery.fancybox.js"></script>

I do not see url in this line. Could you possibly explain where src information resides? Is it in my root directory (plugins/fancybox...)? If it is downloaded minified or not.

Could it get the information it needs from a url instead?
SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial