{"id":128505,"date":"2010-08-11T08:00:00","date_gmt":"2010-08-11T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/performance-optimization-order-styles-and-javascript\/"},"modified":"2013-10-11T17:46:00","modified_gmt":"2013-10-11T17:46:00","slug":"performance-optimization-order-styles-and-javascript","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/performance-optimization-order-styles-and-javascript\/","title":{"rendered":"Performance Optimization: Order Styles and Javascript"},"content":{"rendered":"<p>Did you ever read about Optimization of website\/blog through ordering styles and Scripts in head section?<br \/>\nIf you like your website load in browser as quickly as possible then you may have read in performance optimization tips that<br \/>\nyou should move all CSS files on top and script at last in HTML head section <head><\/head>.<\/p>\n<p>How do you order those calls? If you are manually putting CSS and JavaScript files in head section (<head><\/head>),<br \/>\nthen you can do this very easily. Just modify once and optimization for this is over.<br \/>\nWhat if you are using plugins and that are adding calls to JavaScript and CSS files dynamically. This is case of WordPress blog,<br \/>\nwhere we use many plugins and those plugins add various Styles and Script files dynamically from wp_head() call.<\/p>\n<p>If above lines, do not makes much sense to you then probably you have not<br \/>\nread this documentation on <a href=\"http:\/\/code.google.com\/speed\/page-speed\/docs\/rtt.html#PutStylesBeforeScripts\" rel=\"nofollow ugc\">Google<\/a>.<\/p>\n<p>The plugin will also collect different inline scripts to one place. Thus making the source code<br \/>\nlook better.<\/p>\n<p>To check, if the plugin is doing anything or not, compare the Head section before and after<br \/>\nactivating the plugin.<\/p>\n<p>(For reading more details discussion, follow the Plugin link on right side.)<\/p>\n<p><a href=\"https:\/\/profiles.wordpress.org\/satya61229\" rel=\"nofollow ugc\">Author (satya61229) About page on WP<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ordering StyleSheet and JavaScript (external and inline) for performance optimization.<\/p>\n","protected":false},"author":65,"featured_media":321774,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Performance Optimization: Order Styles and Javascript - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Ordering StyleSheet and JavaScript (external and inline) for performance optimization."},"footnotes":""},"categories":[1],"tags":[93,517,64,6,234],"class_list":["post-128505","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-css","tag-optimization","tag-performance","tag-speed","tag-style"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/128505","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=128505"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/128505\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/321774"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=128505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=128505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=128505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}