generally plugins are used while displaying embeded content in browser. However you could start making plugins in your application also. since the architecture you should support is
"When to load the plugin" since browser sees for MIME type for that. you need to read some articles on plugins

-Paresh