fast-shortcodes Plugin
The fast-shortcodes plugin is a plugin designed to replace static content that has a heavy footprint with static content that has a light footprint that replaces itself with the heavy content when needed.
What it Covers & TO DO
The fast-shortcodes plugin covers YouTube and SoundCloud currently. Auto-updates will be set up soon
Documentation is in progress
YouTube Support
To use the YouTube support, use the shortcode:
[ytfast]
Acceptable parameters:
- id
- source
- width
- height
- maxwidth
- type (default is proportional)
- allowfullscreen (default is on)
- frameborder
- center
- start
- end
I'd recommend setting the source and id. If you don't like the default height & width, set them too. I'd leave everything else as it is. It was designed so you could copy and paste the parameters from youtube's share code.
The ID is required for it to function properly. See the example below
Examples
- [yt-fast src="//www.youtube.com/embed/z-ENxgjL2HE" id="z-ENxgjL2HE" width="420" height="315"]
- [yt-fast id="z-ENxgjL2HE"]