Why you should minify resources when you can

10 years ago

Minifying resources is when you remove unnecessary or redundant data without affecting how the page is shown by the browser. For instance, you can create a header.php page and include it to all your pages instead of having duplicates of the header on every page. You can also remove comments in your code, remove unused code and use shorter variables and function names to improve your page speed.

Filed under: DocumentationWebsite Performance
Tags: , , , ,


Why you should optimize all images on your website

10 years ago

Images usually account for the most bytes on a page. Therefore, it is very important for you to optimize your images. The less bytes the images are, the faster your pages will load up. Using the right image optimization is a process you need to take. Be careful when optimizing your images. If you optimize the images too much, the quality of the images may be poor. Also be on the lookout for images that you can replace with CSS effects or web fonts. Any image that you can eliminate or replace with web fonts or CSS effects will help with your page speed.

Filed under: DocumentationWebsite Performance
Tags: , , , ,


Why you should optimize CSS delivery

10 years ago

Browsers will block rendering a page until all external style sheets are downloaded and processed. It is vital to optimize your CSS delivery so that your page can load faster. You can do so by inlining small CSS files directly into your HTML document. Do not inline large data URIs or CSS attributes.

Filed under: DocumentationWebsite Performance
Tags: , , ,


Why you should prioritize visible content on your pages

10 years ago

To increase your page speed, try to reduce the size of the above-the-fold content. The above-the-fold content is implying the upper half of the front page of your website that doesn’t require you to scroll down the page to see. Many websites that seem very fast are often just as large as slow websites. They just prioritize the above the fold content so that the site appears to load fast. Users love webpages that show up quickly and this is why you should prioritize visible content on your pages. Always load the above the fold content first. The footer is at the bottom of the page for a reason so it doesn’t make any sense to add many external files or images to your footer. The user will rarely see your footer. Structure your HTML so that it loads the critical above-the-fold content first and reduce the amount of data used by your resources.

Filed under: DocumentationWebsite Performance
Tags: , , ,


Why you should remove render-blocking JavaScript

10 years ago

External script can cause the parser to wait for the resource to download which can delay the time for the page to render. You should avoid and minimize the use of blocking Javascript, especially external scripts that need to be fetched before they are executed. You can inline small scripts to avoid extra network requests similar to how we optimize CSS delivery. Another solution to this is by making JavaScript asynchronous or by deferring the JavaScript.

Filed under: DocumentationWebsite Performance
Tags: , , , ,


Why you should use asynchronous scripts

10 years ago

By making sure you are using the asynchronous version of your scripts, your page speed and improve greatly. Many scripts such as Twitter, Facebook, Disqus and Google Analytics are async by default. For those that are not async by default, you should make an effort to see if they have an async version of their script.

Filed under: DocumentationWebsite Performance
Tags: , , , ,


Why you should avoid using plugins such as Flash

10 years ago

To increase your website’s usability, you should avoid the use of special types of web content such as Flash, Java or Silverlight. Sometimes these plugins will cause your website to hang or crash and may also cause security incidents in browsers. Furthermore, many browsers restrict such plugins.

Internet Explorer runs without plugins in Windows UI mode.

Chrome intends to remove most plugins.

Firefox will prompt users before running most plugins.

There are many web technologies that can substitute these plugins now and will not cause your website to hang or crash.

Filed under: DocumentationWebsite Performance
Tags: , , , ,


Why you should configure the viewport on your website

10 years ago

To improve your website’s usability for mobile devices, you should configure the viewport on your website. Simply add this snippet of code into your website’s section:

By doing so, your pages will be optimized well on mobile devices. Viewport controls how the webpage is displayed on a mobile device so that it uses the device’s screen width making it easier to browse and read the content of your pages.

Filed under: DocumentationWebsite Performance
Tags: , , , ,


Why you should adjust size content to viewport

10 years ago

Sometimes you may have content on your page such as an image that has a width that is larger than the device’s width causing the horizontal scroll bar to show up. It is important to adjust the size content to fit within the width of the viewport so that the user does not need to scroll horizontally to see the entire page. You can do this by using relative width sizes such as:
width:100%

Making images and content responsive is one way to improve the usability of your website.

Filed under: DocumentationWebsite Performance
Tags: , , , , , ,


Why you should size tap targets appropriately

10 years ago

We have all experienced a website on our mobile device that had tightly packed links or buttons making it difficult to accurately press on a touchscreen. You may click on one link but it sends you to a link that is next to it that you did not want to go to. This is why you should space your links appropriately so that the user does not click on a link he/she wasn’t aiming for. This also makes it so that the user does not need to zoom in to carefully pick the link they want to go to. Make the important tap targets larger than the ones that are not important. Make sure that there is proper spacing for smaller tap targets. Designing a good user interface will improve the usability of your website tremendously.

Filed under: DocumentationWebsite Performance
Tags: , , , , ,