must be loaded synchronously on the page, meaning it can't be put inside a function and called on demand. However, the subsequent lines inside the initialization code can. What you can do then is simply call the last line inside the initialization code on demand, when you wish the contents of the feed to actually be shown: