google-page-speed

Recently, I was in the process of optimizing a web page speed due to Google now ranking websites based on the page load speed. I decided to implement PHP Buffer being the site was entirely php.

PHP output buffering is normally enabled by default. In some older versions of PHP, a string would be sent to your browser every time the interpreter encountered an echo statement or text outside the PHP delimiters.

Output buffering makes this process quicker and more efficient. The buffer is essentially a big memory-resident string. When text is output, it’s appended to the buffer rather than returned to the browser immediately. The buffer is then “flushed”, i.e. its contents are transmitted and the string is reset pending further output. Flushing occurs when:

  1. the PHP interpreter reaches the end of the page
  2. the buffer exceeds the number of bytes specified within PHP’s output_buffering configuration setting, or
  3. the flush() or ob_flush() functions are called

There are a few caveats but, assuming it works within your environment, you should consider flushing the buffer immediately after the page’s </head> tag, e.g.

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <title>Buffer flushing in action testing</title>
  6. <link rel="stylesheet" type="text/css" href="styles.css" />
  7. <link rel="shortcut icon" href="favicon.ico" />
  8. </head>
  9. <?php
  10. // flush the buffer
  11. flush();
  12. ?>
  13. <body>
  14. &hellip;

(If you’re using WordPress, you could use similar code in your theme’s header.php file.)

Once the browser has received the HTML head, it can begin to download all linked CSS files, favicons and other resources. These downloads can occur while the browser is idle and waiting for the main body content.

The speed increase will depend on the server-side processing required, the weight of your page, the quantity and size of your CSS files, and whether the browser has cached any resources. However, it’s such a simple optimization, there’s little reason not to do it.

I’d be interested to know whether this technique results in a perceivable speed difference on your website or application. Please feel free to comment.

Share

googleSo have you ever heard of this search engine called Google?

Well of course you have…Who hasn’t!

Below, I bring you some tips and tricks you may already know and some you might not know of currently. These tools are always very useful when you are performing SEO for your website or client’s websites.

When used enough or over a period of time using, These should become embedded within your mind and skill set, just as if learning mathematics in 3rd grade elementary school.

So let’s get started!

Enter just the word http for your search to find the top 1000 PageRanked sites.

Enter only www in your search to see how Google ranks the top 1,000 sites.

Manually type the following prefixes and note their utility:

* link:url Shows other pages with links to that url.
* related:url same as “what’s related” on serps.
* site:domain restricts search results to the given domain.
* allinurl: shows only pages with all terms in the url.
* inurl: like allinurl, but only for the next query word.
* allintitle: shows only results with terms in title.
* intitle: similar to allintitle, but only for the next word. “intitle:seoforgoogle google” finds only pages with seoforgoogle in the title, and google anywhere on the page.
* cache:url will show the Google version of the passed url.
* info:url will show a page containing links to related searches, backlinks, and pages containing the url. This is the same as typing the url into the search box.
* spell: will spell check your query and search for it.
* stocks: will lookup the search query in a stock index.
* filetype: will restrict searches to that filetype. “-filetype:pdf” to remove Adobe PDF files.
* daterange: is supported in Julian date format only. 2452384 is an example of a Julian date.
* maps: If you enter a street address, a link to Yahoo Maps and to MapBlast will be presented.
* phone: enter anything that looks like a phone number to have a name and address displayed. Same is true for something that looks like an address (include a name and zip code)
* site:www.somesite.net “+www.somesite.+net” – (tells you how many pages of your site are indexed by google)
*allintext: searches only within text of pages, but not in the links or page title
*allinlinks: searches only within links, not text or title.

There you go, a complete compiled list of google commands to place in your arsenal basket when work on SEO

Feel free to print this page and save for future reference material.

Share

Provide the information for which visitors are looking:

  • Provide high-quality and unique content to visitors.
  • If the web page contain unique and important information then, you receive more visitors and entice webmasters to link to your site.
  • Providing a helpful, rich and unique content to your web pages help to rank well in all search engines and you can occupy the top 10 position.
  • Make sure that, the content related to the keyword and target the those words which are mostly searched by the visitors.

Linking with other Websites:
Links help, crawlers to find your site and provide greater visibility in our search results.

  • At the time of calculating the page rank Google give importance to the back links and text related to link.
  • Google counts the number of link a page receives as part of its PageRank assessment,
  • Algorithms can find the difference in natural links from unnatural links.
  • Natural links develop dynamic nature of the web when other sites find your content valuable and think it would be helpful for their visitors. Unnatural links to your site are placed there specifically to make your site look more popular to search engines.
  • Only natural links are useful for the indexing and ranking of your site.

Make your Site Easily Accessible:

  • Create a website with a logical link structure. Every page should be reachable from at least one static text link.
  • Use a text browser, such as Lynx, to examine your site. Most spiders see your site much as Lynx would.
  • Avoid using JavaScript, cookies, session IDs, frames, DHTML, or Macromedia Flash keep you from seeing your entire site in a text browser, then spiders may have trouble crawling it.

Avoid the following things:

  • Don’t Use unrelated keywords in Html pages.
  • Don’t use “cloaking”.
  • Don’t feel obligated to purchase a search engine optimization service. Some companies claim to “guarantee” high ranking for your site in Google’s search results. While legitimate consulting firms can improve your site’s flow and content, others employ deceptive tactics in an attempt to fool search engines.
  • Don’t use images to display important names, content, or links.
  • Search Engine crawler doesn’t recognize text contained in graphics.
  • Use ALT attributes if the main content and keywords on your page can’t be formatted in regular HTML.
  • Don’t create multiple copies of a page under different URLs.
  • Using Robots.txt file to block from search engines and not to index.
Share