This demo showcases the two different rendering modes of Telerik's ASP.NET Notification control: Classic and Lightweight.
-
Classic rendering is the current HTML rendering of the control that uses image sprites for the icons and background gradients.
-
Lightweight rendering uses similar HTML, but no image sprites. The icons are now font icons and not
<img>
elements, and the background gradients are now CSS gradients instead of an image sprite.
There is also a Native render mode option inherited directly from RenderMode. As RadDock does not have a specific HTML element, the Native render mode will have the same effect as the Classic one.
The default render mode of the control is Classic and you have the option to either explicitly set it to Lightweight or leverage the Auto mode to have the control choose the best rendering based on the user's browser.
Note: In order to provide optimal experience for your end users, we recommend that you use only one type of render mode for a control on a given page. For example, if you have two instances of RadNotification on the page, it will be best if both of them use the same render mode.
Note: The Material skin is available only for the modern Lightweight render mode.
Change the skin or the mode to properly visualize the demonstrated control.
Notes on the statistics:
* - The markup is obtained through the dev toolbar of the browser, minified and saved as a file to determine its actual size. There is no difference because the HTML rendering itself is not changed greatly, as it was semantic and as lightweight as possible to begin with.
** - The CSS size only counts the RadNotification CSS and does not include the RadMenu stylesheets. To further improve performance, set its Visible property to false, if you are not using it: <NotificationMenu> Visible="false" />
.
*** - The Lightweight RenderMode does not use any image sprites and produces the icons via the font many Telerik controls use, so it is downloaded only once per user.