Discourse not shown in iframe

Yes that is possible. Just be careful to not make those requests block rendering the page.