html - Access remote jQuery file -
i building website (to accessed 3 members). need install jquery in website. since, website limited members, decided have jquery file in c drive of every pc , decided link instead page load time decreased. but, link not working. following code:-
<!doctype html> <html> <script src="file:///c:/jquery.min.js"></script> <script> $(document).ready(function(){ $("body").html("replaced text"); }); </script> <body> replace text </body>
is not possible fetch remote jquery file?
first of all, there no such way can access user's local file. huge security exception. there 1 way can access user's file, i.e. when user uploads files voluntarily.
now, offering solution, if have 3-4 members and not variable, must try using local server. why access web pages online when can access them offline?
using local server may save bandwith pages load immensely fast. , yes can store jquery file in project folder in local machine.
starters, wamp server , xampp server can prove boon. included mysql, php , administrating features. must looking for.
furthur comments : if users connected lan (which guess in case), can install wamp or xampp in 1 machine , access using i.p. address of server machine. eg ->
192.168.1.2/your_app/
, access in server machine localhost/your_app
Comments
Post a Comment