microsoft ® official course developing optimized internet sites microsoft sharepoint 2013...

23
Microsoft Official Course Developing Optimized Internet Sites Microsoft SharePoint 2013 SharePoint Practice

Upload: adam-parsons

Post on 21-Dec-2015

220 views

Category:

Documents


0 download

TRANSCRIPT

Microsoft® Official Course

Developing Optimized Internet Sites

Microsoft SharePoint 2013

SharePoint Practice

Module Overview

Optimizing a SharePoint Site for Search Engines•Optimizing Performance and Scalability

Lesson 1: Optimizing a SharePoint Site for Search Engines

Elements of Search Engine Optimization

Generating Sitemaps

Excluding Content from Internet Search

Configuring Site Collection SEO Settings

Working with Publishing Page SEO Properties

Programming SEO Properties with Structured Navigation

Programming SEO Properties with Managed Navigation•Demonstration: Reading SEO Properties

Elements of Search Engine Optimization

•Ensure that Internet search engines find and crawl appropriate content on your site

•Optimize how your links are displayed on Internet search sites

•Maximize the search ranking your content deserves

Generating Sitemaps

•Used to advise search engine of available content• Hyperlinks• Metadata

•Auto-generated by Search Engine Sitemap job• Default schedule runs daily• Separate instance for each Web Application

•Enabled by activating Search Engine Sitemap feature on a Site Collection

Excluding Content from Internet Search

•Robots Exclusion Protocol• Defacto Standard created in 1994 (by Consensus)• Used to exclude content from web crawlers• Advisory only• More information at: http://www.robotstxt.org

•Auto-generates “robots.txt” file in the root folder of the Site Collection

•Configured from Search Engine Optimization Settings in Site Collection Administration

Sample Robots.txt File

User-agent: *

Disallow: /layouts/Disallow: /_vti_bin/Disallow: /_catalogs/Disallow: /legal/privacy.aspx

Sitemap: http://www.contoso.com/sitemap.xml

Configuring Site Collection SEO Settings

Working with Publishing Page SEO Properties

•Enabled by activating SearchEngineOptimization site feature• Auto activated by default on publishing sites

•Only available on Publishing Pages

•Property value storage depends on navigation mode:• Structured Navigation: Hidden Columns• Managed Navigation: Hidden Term Custom Properties

Programming SEO Properties with Structured Navigation

•SEO Properties are stored as hidden columns on publishing pages (only publishing pages)

•Properties can be programmatically read or updated similar to other columns

•SEO field names:• SeoBrowserTitle• SeoMetaDescription• SeoKeywords• SeoRobotsNoIndex

Programming SEO Properties with Managed Navigation

•SEO properties are stored as hidden custom local properties on the Navigation Term

•New classes are provided in the Microsoft.SharePoint.Publishing.Navigation namespace to program navigation terms

•Navigation Term SEO properties:• Sys_Seo_PropBrowserTitle• Sys_Seo_PropDescription• Sys_Seo_PropKeywords• Sys_Seo_PropSiteNoIndex

Demonstration: Reading SEO Properties

In this demonstration, your instructor will show how to view and edit SEO properties on publishing pages, and how to programmatically access SEO properties from Page and NavigationTerm objects.

Lesson 2: Optimizing Performance and Scalability

Client-side Programming

Minification and Bundling

Caching

Optimizing Image Resources

Using Image Renditions•Using Content Delivery Networks

Client-side Programming

•Client-side programming with JavaScript becoming much more prevalent in web sites and applications

•Handling user interaction events on the client minimizes having to post-back the entire page to the server

•Requests to the server for additional data can be can be made efficiently in the background

Minification and Bundling

•Minification removes unnecessary characters from source code files• Commonly used for static resources (CSS, JavaScript)• Reduces the bytes required to download the file• Reduces the time it takes the browser to render a page

•Bundling combines multiple static resources into a single file• Reduces the number requests to the web to download static resources• Reduces the time it takes a browser to render a page

Caching

•BLOB Cache• Static resource files (e.g. Image, Video, JavaScript)• Must be enabled in web.config (Off by Default)• Required for Image Renditions feature

•Output Cache• Caches full rendered page output• Caches versions based on user permission profiles

•Object Cache• Caches page data objects such as list queries, site settings, and page layouts

Anonymous Search Results Cache

•New cache in SharePoint 2013 complements the Content by Search Web Part

•Enabled by setting TryCache property to true on the Content by Search or Catalog Item Reuse web parts

•Special configuration required to support caching when querying search using the REST API

Optimizing Image Resources

•Optimizing images can be one of the best investments in performance optimization

• Image recommendations:• Presize images to meet display requirements• Choose the right image format• Use Image Sprites• Embed images in CSS using a data URI• Consider web fonts for typography

Using Image Renditions

•Preconfigured collection of alternative resolutions for rendering an image• Reduces bandwidth by pre-rendering images at the correct resolution before downloading to the browser

•Users can edit and crop the portion of the original image to display for each rendition

•Users can select the appropriate rendition with inserting or editing image content in pages

•Requires the BLOB cache to be configured

Using Content Delivery Networks

•Content is replicated across geographically distributed servers

•Requests are routed to servers with the closest proximity to the user

•Designed for delivering static content such as CSS, JavaScript, Image and Video files

•Benefits include faster page loads and smoother streaming

Lab: Optimizing SharePoint Publishing Sites

Exercise 1: Optimizing a Site for Search Engines•Exercise 2: Maximizing the Performance of a Publishing Site

Lab Scenario

The marketing team at Contoso wants to ensure that the public-facing website has been optimized for Internet search engines. They are also concerned the site is not performing as well as it can; they have received feedback that many pages load slowly on mobile devices. They have asked you to configure SharePoint 2013 appropriately. According to Administration policy, customization and configuration of SharePoint must be done through either PowerShell, or SharePoint Features and Solutions.

Module Review and Takeaways

•Review Question(s)