Title: Javascript only?
Last modified: May 31, 2020

---

# Javascript only?

 *  Resolved [joshuamckendall](https://wordpress.org/support/users/joshuamckendall/)
 * (@joshuamckendall)
 * [6 years ago](https://wordpress.org/support/topic/javascript-only/)
 * From my understanding, some of the blocks in this plugin ( and some of the blocks
   now in WooCommerce proper ) are rendered client side only? And looking at the
   markup some blocks appear to be loaded within an iframe? Isn’t this bad for accessibility/
   progressive enhancement?
 * I realize that most people are likely not browsing the web without javascript
   enabled, but I just feel there should be some kind of graceful degradation of
   some sort rather than just solely relying on Javascript. So many websites have
   become bloated with Javascript, is it really necessary for a checkout form to
   be rendered client side only?
 * I guess I’m just curious as to where WooCommerce is headed. As a developer this
   seems to also make it pretty difficult for extensibility. Is the goal here to
   maybe have developers build custom blocks of their own? So if I wanted a block
   of All Products/Checkout/Cart that had server side rendering I could theoretically
   write my own block to do that?
 * Sorry if this is not the place to post something like this. I can remove it and
   repost in the appropriate channels if so.

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

 *  [Phillip C. a11n](https://wordpress.org/support/users/phillipwoo/)
 * (@phillipwoo)
 * [6 years ago](https://wordpress.org/support/topic/javascript-only/#post-12928119)
 * Hi,
 * Thanks for reaching out about this. You suggested that rendering things on the
   client-side might encourage developers to create their own blocks. While this
   isn’t the intention we do like to see the community develop things for their 
   needs. If that feature is needed by the community at large it would be helpful
   to share it too. I am unsure how building a block for server-side rendering may
   not work since the payment portion of the block is already running via the payment
   service provider’s API. There tends to be a sticking point with them if the request
   isn’t coming directly from the store’s site. I’ve seen them throw fits when the
   request appears to come from one of the CDN sites.
 * If you want a more technical answer than this I recommend checking the Github
   repositories for both WooCommerce and WooCommerce Blocks:
 * WooCommerce: [https://github.com/woocommerce/woocommerce](https://github.com/woocommerce/woocommerce)
 * WooCommerce Blocks: [https://github.com/woocommerce/woocommerce-gutenberg-products-block](https://github.com/woocommerce/woocommerce-gutenberg-products-block)
 * I hope this helps. Please reply to this message if you need any more assistance.
 * Thanks!
 *  [Joey – a11n](https://wordpress.org/support/users/jricketts4/)
 * (@jricketts4)
 * [6 years ago](https://wordpress.org/support/topic/javascript-only/#post-12960384)
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   if you have any further questions, you can start a new thread.
 * – Joey

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

The topic ‘Javascript only?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woo-gutenberg-products-block_71608f.
   svg)
 * [WooCommerce Blocks](https://wordpress.org/plugins/woo-gutenberg-products-block/)
 * [Support Threads](https://wordpress.org/support/plugin/woo-gutenberg-products-block/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-gutenberg-products-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-gutenberg-products-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-gutenberg-products-block/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [question](https://wordpress.org/support/topic-tag/question/)
 * [rendering](https://wordpress.org/support/topic-tag/rendering/)

 * 2 replies
 * 3 participants
 * Last reply from: [Joey – a11n](https://wordpress.org/support/users/jricketts4/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/javascript-only/#post-12960384)
 * Status: resolved