javascript - Button does not show up until refresh is hit -



javascript - Button does not show up until refresh is hit -

i have been working on linking website square account. have button made off square website post mine links account. link shows plain text link right away button not display until nail refresh. happens every time. locally , in production. here code button

<a href="https://mkt.com/rockwell-windsor-rice" class="sq-embed-button" data-style-background-color="#7c8083" data-style-width="260px" data-style-height="46px">order online</a> <script src="https://cdn.sq-api.com/market/embed.js" charset="utf-8"></script>

i new programming. there .js file need called embed.js? not have , did not see in documentation it. cannot figure out why styling button displays after hitting refresh. perhaps configuration need switch true (or false) ?

thanks help

javascript ruby-on-rails-4 square-connect

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -