Title: Not load html and scripts
Last modified: August 22, 2016

---

# Not load html and scripts

 *  [Bruno Cascio](https://wordpress.org/support/users/brunocascio/)
 * (@brunocascio)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/not-load-html-and-scripts/)
 * I use shortcode in code
 *     ```
       <?php while ( have_posts() ) : the_post(); ?>
       		<?php the_content(); ?>
       		<?php echo do_shortcode("[poly paper-button raised]A green button[/poly]"); ?>
       	<?php endwhile; ?>
       ```
   
 * , but it not load polymer dependences.If write in the content of page, it work.
 * [https://wordpress.org/plugins/polymer-components/](https://wordpress.org/plugins/polymer-components/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Mat](https://wordpress.org/support/users/blocknotes/)
 * (@blocknotes)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/not-load-html-and-scripts/#post-5806888)
 * Hi Bruno.
    It doesn’t work inside a PHP do_shortcode because I create the list
   of the imports while saving a post. If I make this list at runtime it will slow
   down the page loading (because I parse the post content). Perhaps I could add
   an option to force import some components. I will think about it.
 *  Thread Starter [Bruno Cascio](https://wordpress.org/support/users/brunocascio/)
 * (@brunocascio)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/not-load-html-and-scripts/#post-5806969)
 * Yes, i understand. Maybe an option to import manually those components 🙂
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Not load html and scripts’ is closed to new replies.

 * ![](https://ps.w.org/polymer-components/assets/icon-256x256.png?rev=1289490)
 * [Polymer for WordPress](https://wordpress.org/plugins/polymer-components/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polymer-components/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polymer-components/)
 * [Active Topics](https://wordpress.org/support/plugin/polymer-components/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polymer-components/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polymer-components/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Bruno Cascio](https://wordpress.org/support/users/brunocascio/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/not-load-html-and-scripts/#post-5806969)
 * Status: not resolved