A script embedded into a page display after all other content

We no longer maintain the Knowledge Base since version 4.3.x. All the latest user and developer documentation for 4.3.x and newer versions is now available at docs.cs-cart.com.

  • This article applies to CS-Cart versions:
  • 4.3.x

You may have a problem that scripts embedded into any part of a page display after all other content.

For example, here a map appears at the very bottom of a page:

To solve this problem, do the following:

  • In the administration panel of your store open the page editing section. Website > Content > Free returns in our example.
  • In the Description field switch to HTML (<> icon).
  • Add your script to desired part of the code, adding the data-no-defer parameter to it.
    For example, this is what we had: <script type="text/javascript" charset="utf-8" src="https://api-maps.yandex.ru/services/constructor/1.0/js/?sid=y4oQZZZO4ztyCCS4z0emVSlKODDnz3Gp&width=600&height=450">
    And this is what it should look like: <script type="text/javascript" charset="utf-8" src="https://api-maps.yandex.ru/services/constructor/1.0/js/?sid=y4oQZZZO4ztyCCS4z0emVSlKODDnz3Gp&width=600&height=450" data-no-defer>

  • Save the changes

That is how this page looks like now:

Home / Knowledge base / Look and feel (design) / A script embedded into a page display after all other content