fbpx

Trick or Treat - 30% OFF - Coupon Code: SCARY20 Grab the Deal!

Welcome, Guest
Username: Password: Remember me

TOPIC: Enabling Minify JS, breaks JS maps.yandex.ru

Enabling Minify JS, breaks JS maps.yandex.ru 1 month 3 weeks ago #24144

  • alekshavan
  • alekshavan's Avatar
  • Offline
  • Senior Member
  • Posts: 48
  • Karma: 0
After Astroid Framework 2.4.1 update
When Minify JS is enabled, the map from the maps.yandex.ru service moves to the very bottom of the page.
Javascript map code inserted in SP Page Builder / HTML Addition
Website This site has a problem. (Click)

astroid_template_zero 2.4.0
Astroid Framework 2.4.1


1. Скриншот. Minify JS disabled.



2. Скриншот после включения Minify JS
Карта съехала вниз

Last Edit: 1 month 3 weeks ago by alekshavan.
The administrator has disabled public write access.

Enabling Minify JS, breaks JS maps.yandex.ru 1 month 3 weeks ago #24189

  • nishtha
  • nishtha's Avatar
  • Offline
  • Moderator
  • Posts: 1433
  • Thank you received: 139
  • Karma: 18
Hi,

Thank your for trying out our new features.
Please add your map placement code at the desired position:
<div id="map"></div>

and load your map with following js code:
ymaps.ready(function () {
var myMap = new ymaps.Map('map', {
....
});
});
This can also help: tech.yandex.ru/maps/jsbox/2.1?from=jsapi

If still it doesn't work then let us know.

Thanks,
Nishtha
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.

To know more about products check out the their documentation.
The administrator has disabled public write access.

Enabling Minify JS, breaks JS maps.yandex.ru 1 month 3 weeks ago #24200

  • alekshavan
  • alekshavan's Avatar
  • Offline
  • Senior Member
  • Posts: 48
  • Karma: 0
Hello dear Nishtha. I don't really understand about coding and JS. Below I will place the card code. If it's not difficult for you, help me with this card code. I have the exact same problem on another site. I want to understand how to write all these JS functions, with this problem.
Code display:
<script type="text/javascript" charset="utf-8"async src="https://api-maps.yandex.ru/services/constructor/1.0/js/?
um=constructor%3A5ac61b4df42fd93afcc262d77822d95847e3722092c0e5c084aa3651f56ffd56&amp;
width=100%25&amp;height=380&amp;lang=ru_RU&amp;scroll=true"></script>
Last Edit: 1 month 3 weeks ago by alekshavan.
The administrator has disabled public write access.

Enabling Minify JS, breaks JS maps.yandex.ru 1 month 3 weeks ago #24208

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 4153
  • Thank you received: 609
  • Karma: 108
Hello,

Thanks for reporting, we'll see if this can be fixed in the future release. Minification is an experimental feature and you can just disable if it doesn't work.
docs.joomdev.com/article/astroid-minify-...te-what-should-i-do/

Thanks,
Chetan
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The administrator has disabled public write access.

Enabling Minify JS, breaks JS maps.yandex.ru 1 month 3 weeks ago #24209

  • alekshavan
  • alekshavan's Avatar
  • Offline
  • Senior Member
  • Posts: 48
  • Karma: 0
Hello! As you can see, if there are any problems with your new releases, I always try to send feedback on the forum. As I understand it, now you are advising me to temporarily disable this experimental feature for now?
The administrator has disabled public write access.
Moderators: chandandeep
Time to create page: 0.397 seconds