Speed up websites: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 28: Line 28:


{{Template:Build a website}}
{{Template:Build a website}}
== Connection test ==
[[網路服務連線測試]]


[[Category:Programming]]
[[Category:Programming]]

Latest revision as of 17:40, 6 March 2024

Image part[edit]

Compression tools to reduce the file size of images

JavaScript part[edit]

Compression tools to reduce the file size of javascript

Using CDN (Content Delivery Network)

//If the javascript library hosted at CDN was failed to connect, it will switch to local javascript file automatically.

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js" type="text/javascript"></script>
<script>!window.jQuery && document.write('<script src="local-js-path/jquery-1.12.4.min.js"><\/script>');</script>

<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js" type="text/javascript"></script>
<script>!window.jQuery.ui && document.write('<script src="local-js-path/jquery-ui-effects.custom-1.9.2.min.js"><\/script>');</script>
	


Web site design and development process


Connection test[edit]

網路服務連線測試