CSS defines only three bullet shapes: disc, circle, and square. To get custom bullets, web designers use small bullet images. The network latency cost for these images is high, slowing down the web site. Instead, avoid bullet images and use Unicode symbol characters as bullets. Unicode bullets require nothing extra to download and provide thousands of bullet shapes to choose from.
A typical web page bar chart uses an image from a presentation or spreadsheet application. The network latency cost for the image is high, slowing down the web site. Instead, create bars using rows of Unicode block characters: █. The characters are much faster to download and they scale well as the font size is changed.
A typical web page color gradient uses a thin GIF or PNG image repeated for the width of the page. However, the network latency cost for the image is high, slowing down the site. Instead, skip the image and draw the gradient with a table and thin rows of varying background colors. The table is much faster to download and looks the same.
Numbers in prices, quantities, dates, times, phone numbers, and addresses may not be of interest when processing a web page for a PHP search engine or keyword analysis tool. In international text there are around 900 different types of digits, currency symbols, and units of measure marks that need to be removed. This tip shows how to remove numbers and number-related characters.
Most symbol characters, like + = © ™ ← → ☺ ♣ ♠, need to be stripped out of web page text before processing it in a search engine or text analysis tool. For international text there are thousands of symbol characters, but some should be removed in one context, but not in another. This tip shows how.
When processing text for a search engine or analysis tool, code needs to strip out punctuation, formatting, spacing, and control characters to reveal indexable text. In international text there are hundreds of these characters, and some should be removed in one context, but not in another. This tip shows how.
The HTML tags on a web page must be stripped away to get clean text for a PHP search engine, keyword extractor, or some other page analysis tool. PHP's standard
strip_tags( ) function will do part of the job, but you need to strip out styles, scripts, embedded objects, and other unwanted page code first. This tip shows how.
Most Drupal web sites have a set of blocks that line the left or right sides of its web pages. Typical blocks are menus, lists of recent posts, and forms for logging in and searching. Every block adds to the work Drupal must do to assemble a page, but some blocks are particularly slow. To speed up your site, install the Block Cache module to create cached versions of your slowest blocks. This article benchmarks the impact of block caching for 29 common blocks.
Drupal blocks provide secondary content that often lines the left and right sides of Drupal web pages. Typical blocks are menus, lists of recent posts, and forms for logging in and searching. But every block on a page increases Drupal's work to assemble a page, slowing down your web site. Speed it up by disabling the blocks that have the biggest performance impact. This article benchmarks 32 common blocks and concludes with a few guidelines on what to watch out for when selecting blocks for your site.