• Resolved joshuamckendall

    (@joshuamckendall)


    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)
  • 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

    WooCommerce Blocks: https://github.com/woocommerce/woocommerce-gutenberg-products-block

    I hope this helps. Please reply to this message if you need any more assistance.

    Thanks!

    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.