1

Where can I download the file: bootstrap-dialog.min.js?

I arrived here: https://github.com/nakupanda/bootstrap3-dialog/blob/master/examples/assets/bootstrap-dialog/js/bootstrap-dialog.min.js

But not sure how I can download the file.

I just want to load it in locally.

Siguza
  • 21,155
  • 6
  • 52
  • 89
Marcello Impastato
  • 2,263
  • 5
  • 30
  • 52
  • https://raw.githubusercontent.com/nakupanda/bootstrap3-dialog/master/examples/assets/bootstrap-dialog/js/bootstrap-dialog.min.js this is the file.right click and save as... – Alon Jul 23 '15 at 18:17
  • Just use the CDN or download from CDN - http://cdnjs.com/libraries/bootstrap3-dialog – Dayan Jul 23 '15 at 18:18

2 Answers2

2

If you just want to use it, then I recommend making use of a CDN. For example, head over to cdnjs.com and you can find it there and add the reference to your page.

Direct Link: http://cdnjs.com/libraries/bootstrap3-dialog

<head>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap3-dialog/1.34.5/css/bootstrap-dialog.min.css">

<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap3-dialog/1.34.5/js/bootstrap-dialog.min.js"></script>
</head>

You may also open the development/production js file directly on your browser and save it from there.

Or you can install NPM, then with NPM install Bower, with bower you can manage your assets much easier. For example, you can run bower install bootstrap3-dialog and this will take care of downloading everything for you. Then you pick whichever you wish to use "development" or "production" css/js files.

Dayan
  • 7,634
  • 11
  • 49
  • 76
  • Thanks :) I thinked that is better to have it saved in local. Becouse if there is some problem in remote, i risk that website not work correctly. It is bad? – Marcello Impastato Jul 23 '15 at 18:30
  • You can have CDN then fall back to local if CDN fails. Take a look at this [answer](http://stackoverflow.com/questions/5257923/how-to-load-local-script-files-as-fallback-in-cases-where-cdn-are-blocked-unavai) to help you get started. CDN's normally perform much faster than serving the css/js yourself. – Dayan Jul 23 '15 at 18:35
  • interesting. just i have some doubt. In header i have almost seven-eight of these files. Is normal / usual query more server one to one it? – Marcello Impastato Jul 23 '15 at 18:43
  • If your web application is internet facing (meaning, users will access it from outside your network) then a CDN will normally perform better. CDNs tend to have More servers, The bandwidth being used (you don't pay for), Geolocation to lower response time to users, Redundancy and optimized caching settings. – Dayan Jul 23 '15 at 18:50
1
Yevgen Safronov
  • 3,977
  • 1
  • 27
  • 38