[openstreetmap/openstreetmap-website] Add Turbo to replace custom JS (PR #4562)
Anton Khorev
notifications at github.com
Wed Mar 20 21:57:20 UTC 2024
@AntonKhorev commented on this pull request.
> @@ -2,6 +2,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<%= javascript_include_tag "es6" unless browser.es6? %>
+ <%= javascript_include_tag "turbo", :type => "module" %>
Since modules are deferred, you had to defer the init code:
https://github.com/openstreetmap/openstreetmap-website/pull/4562/files#diff-0e145ba000e96b1a45d230275e350e4e8514efb4db7dbcfa228fe1003896c9b4R72-R74
Is there a way for Sprockets to translate a module into non-module?
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4562#discussion_r1532932884
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4562/review/1950282101 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240320/0954dcda/attachment.htm>
More information about the rails-dev
mailing list