Yes, it's possible. You've mentioned that you downloaded the file - that's a good first step, but you also have to change all the href
and src
references.
For example,
<link rel="stylesheet" href="http://jquery.com/jquery-wp-content/themes/jquery/css/base.css?v=1">
should become
<link rel="stylesheet" href="base.css">
Also remember to get the offline version of the jQuery JS library, too:
Download jquery.js, put it in your root folder & reference it:
<script src="jquery-1.9.1.min.js"></script>
And if you want it in a subdirectory:
<script src="[subdirectory-name]/jquery-1.9.1.min.js"></script>
Remember that both files need to be offline and in your working local directory. This means that you cannot remove the stylesheet nor the jQuery JS library. Keep both of them, in the local formats I've mentioned above.
Also, putting the <script>
tag in the <head>
is bad practice; move it just before the </body>
tag instead.
Your code should now look (in short, note that I haven't put much) like:
...
<html class="no-js" lang="en-US">
<head>
...
<link rel="stylesheet" href="base.css">
...
</head>
<body>
...
<script src="jquery.min.js"></script>
</body>
</html>
Again, make sure that base.css
and jquery.min.js
are the exact file names and are in the same folder as this .html
file
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…