features help us streamline the code while also bringing down the readability of the code. This needs to be weighed on our own.On the one hand, the simplification of JS code, can substantially reduce network traffic, especially a large number of applications JS Common library. Personally, it is recommended that if it is a relatively complex application, please write some comments appropriately. This is the same as being an expression, able to
CSS. There are currently 6 rules of practice in total. See also the Mozilla Developer Center article: Writing Efficient CSS1. PutCSS placed at the Top of the code page (put stylesheets at the upper) The official explanation I feel is somewhat vague. This article is actually related to the user's access expectations . CSS to the top of the browser can be targeted to the HTML page from top to bottom to parse and render. No one likes to wait, and the browser has taken this into account. 2. Avoidcs
range. Assemble, streamline, and optimize external objects. Use CSS rollover instead of graphics tumbling to speed up the display, reducing HTTP requests.
total_images--, watch out! The number of pictures in this page is moderate (10 pieces). Consider using fewer pictures in your site, or try using the same picture on multiple pages to make the most of the cache.
total_css--, watch out! There are 4 external CSS files in this page. Consider reducing i
developers to get their work done quickly when they modify your code.
An example to illustrate inline style in html
3, optimize the CSS code
Nowadays, the practice of adding multiple CSS files to a Web site is common. However, when a Web site contains too many CSS files, it can slow down the response time of the site. The solution is to streamline the code and optimize multiple CSS files, merging them into one file. This approach can significa
In fact, when it comes to large web sites, it and small sites are almost two concepts, the concept of the difference is like the difference between an aircraft carrier and canoe, China as early as the Yellow Emperor Yan Emperor can make canoes, but the production of aircraft carriers? Because the aircraft carrier is too large, the scale of Ascension brings a lot of problems, then how to analyze and solve these problems?I feel that large sites should be simplified, should not be complex and compl
JavaScript AndcssExternal)After stripping, it can be targeted to a separate processing strategy, such as compression or caching strategy.4. Streamline JavaScript and CSS(Minify JavaScript Andcss)It might be better if you don't have JavaScript and CSS. But, this is impossible, so, try to be smaller. Shorthand for grammar.5. Use In IE @import instructions are equivalent to writing the link tag at the bottom of the HTML. And this is contrary to the firs
abbreviations can improve the speed at which you write code, and streamline your code volume.In CSS there are many attributes that can be abbreviated, including Margin,padding,border, font,background, and color values, if you learn the code abbreviations, you can write the code:
li{ font:1.2em/1.4emArial,Helvetica, sans-serif; padding:5px0 10px 5px; }
li{Font:1.2em/1.4em Arial, Helvetica, sans-serif padding:5px 0 10px 5px;} E: Using CSS
caching strategy.4. Streamline JavaScript and CSS(Minify JavaScript and CSS)It might be better if you don't have JavaScript and CSS. But, this is impossible, so, try to be smaller. Shorthand for grammar.5. Use In IE @import instructions are equivalent to writing the link tag at the bottom of the HTML. And this is contrary to the first one.6. Avoid using filter (Avoid Filters)
Web page Production Poluoluo article introduction: The Web
for new applications from months to 2-3 days
-Apply an image across deployment of computing resources and storage resources
-end user self-service, improving service response
-Through resource and virtual machine isolation, Project user access control to ensure information security
-Easy to use-no need to understand the details of the entire infrastructure
-Fully support the current virtualized environment to protect your investment
-Dynamic capacity expansion to ensure continuous operation, op
./configure generated makefile, you will find that the redundant place is very much, in fact, the key place, so that 20 of several, you can try to streamline, so that the organization of the program will be familiar with the structure of faster, after all, makefile reaction to the program (specifically. C and. h ) is a dependency relationship.OpenSSH makefile I have not streamlined (of course, it is easy to stream
-circuit" principle, such as the first expression in is not to deal with the second expression, and | Just the opposite.JS also follows the above principles. But what's more interesting is the value they return.Code: var attr = True 4 "AAA";Then the result of the run attr is not simple true or false, but "AAA"Take another look at | | :Code: var attr = attr | | ""; This operation is often used to determine whether a variable is defined, and if it is not defined, give him an initial value, whic
within the entire page size.
avoid or reduce server redundancy transfers : You can solve this problem with Ajax solutions.
Find the problem
It may be tedious to handle the Web sites/Web pages listed in the table above, but there are free web tools to help you find these problems.
These tools work with Web pages (through URLs) and determine the size of the entire page, as well as elements such as objects and images used in the Web page. This information is useful when deciding how to impr
FCKeditor's streamlining and use of the network has a lot of information, but the introduction of incomplete or not enough detail. May be my folly, anyway, when I first use FCKeditor, there is this feeling, so this time I try to first use FCKeditor friend through my introduction to this article can be smooth operation.
First, Streamline:
1. Delete the _samples folder and the. txt file and the. pl file in the FCKeditor folder.
1.1. In fact, as long as
(). Since the JQuery 1.7 release, ON () attaches the preferred method of the event handler. However, for consistency reasons, you can simply use the on () method entirely.
Copy Code code as follows:
Bad
$first. Click (function () {
$first. CSS (' border ', ' 1px solid red ');
$first. CSS (' Color ', ' blue ');
});
$first. Hover (function () {$first. CSS (' border ', ' 1px solid red ');})
Copy Code code as follows:
Suggestions
$first. On ('
are based on String.prototype extensions:
The reason is that there is a netizen and I discuss two functions,
One is isdatetime (judging whether the character is in line with YYYY-MM-DD hh:mm:ss date format)
The other is the left function, similar to the mixed interception of English characters in the left implementation of VBScript.
He used loops for all two functions, used more than n if statements, each with more than 40 lines of code, and asked me if there was any good way to
installation, the software defaults to the list of applications that are currently running in the background, and each item is later annotated with the amount of memory consumed.
Streamline built-in applications
I believe Android users have made a qualitative leap in fluency by constantly replacing ROM and brush cores, if your phone is already smoother and more power-saving than the iphone, then we can stop and if you're not satisfied, we have othe
article assumes you have a solid grasp of HTML and CSS, and a basic understanding of JavaScript and Ajax programming techniques. The sample application is built using client code only; The techniques demonstrated in this article apply to any server-side application framework. For all Ajax applications, you must run the sample code from a WEB server rather than from a file on your desktop. In addition, you can only follow the source code on my Web server to see how the sample site works.
Recall
it. In combination with the Paper pencer launched by tythree, the experience is awesome.Adobe Ideas
This is a great APP for inspiration. It can flexibly control vector materials, layers, and color themes, and design works can be output to AI for later processing.Free icon material The Noun Project
The icon material is worth the money. Thousands of icons are derived from different artists, some of which are free and some are charged.80 mini icons
This is a simple and clear collection of small
at the bottom of the document causes the browser to block content from being rendered progressively
Use the link tag to place the style sheet in the document head
Rule 6: Place the script at the bottom
Placing the script in the lower part of the page means that more content can be progressively rendered
Parallel download
Worst case scenario: put the script at the top and the script blocks the download of the content/component behind it
Move the script to the bottom
: JS | | And features help us streamline the code while also bringing down the readability of the code. This needs to be weighed on our own.On the one hand, the simplification of JS code, can substantially reduce network traffic, especially a large number of applications JS Common library. Personally, it is recommended that if it is a relatively complex application, please write some comments appropriately. This is the same as being an expression, ab
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.