We have recently started to integrated GFS Checkout into Magento 2 however we have come across an issue where within the Magento 2 framework it uses Knockout.js to render the checkout elements. We have the GFS widget working fine on a flat html page but when it is included in to a dynamically rendered knockout template the widget fails on a couple of fronts. Firstly as the widget contains inline js it will try to execute before the Knockout.js bindings have completed, meaning the `gfs-data` attributes are not available to it.
Secondly the Links to some of the images seem to point to the root of the website rather than the static folder which is used in Magento 2.
Can you advise if you have come across this before and if you have any suggestion on how to correct this?