This card describes four variants, that add a more intuitive workflow when working with nested attributes in Rails + Unpoly:
Debugging performance issues in your Rails app can be a tough challenge. To get more detailed insights consider using the...
When an AJAX request raises an exception on the server, Rails will show a minimal error page with only basic...
The attached compiler() function below applies JavaScript behavior to matching HTML elements as they enter the DOM. This works like...
Say you wrap your index view in a form to apply different filters like pagination or a search query. On...
Version 3.7.0 broke some things in complex forms. Sorry for that. Concurrent user input is hard. 3.7.1 This change fixes...
Unpoly's [up-observe], [up-autosubmit] and [up-validate] as well as their programmatic variants up.observe() and up.autosubmit...
You can use Unpoly's up.on with a named listener function and immediately unbind this event listener with { once: true...
Usually, Unpoly compiler destructors are returned from the compiler function. However, when using async compiler functions, you can not register...
When your JavaScript bundle is so massive that you cannot load it all up front, I would recommend to load...
...all forms, ...) without having to specify the selector on every link, as described here: https://unpoly.com/up.link.config. Make sure to always exclude your download links, otherwise your downloads won't...
In Ruby on Rails, all objects have a useful blank? method. It returns true for nil but also for empty...
The default Google Analytics might not work as expected with your Unpoly app. This is because your app only has...
An end-to-end test (E2E test) is a script that remote-controls a web browser with tools like Selenium...
A flaky test is a test that is often green, but sometimes red. It may only fail on some PCs...
Unpoly 0.60.0 works with or without jQuery Is jQuery slow? From: Sven To: unpoly@googlegroups.com Subject: performance on smartphones and tablets Hello I just used your framework in one project...
...event.originalEvent. Exercise: Migrating to Unpoly 0.60 while removing jQuery Show how to remove jQuery from unpoly-guide Start with b496388be0d5c995ca60badf45f7acdbb76b284b Just grep for "$" and rewrite occurences like a robot
...the same way. To load Unpoly's default CSS for example, add // packs/main.js import 'unpoly/dist/unpoly.css' As above, we usually want to load all CSS from some directories. Do this with...
It most cases it's not necessary to add a version constraint next to your packages in the package.json. Since...
Jasmine specs for the frontend often need some DOM elements to work with. Because creating them is such a common...
By default, Google Analytics tracks the current URL for every request. Sometimes you will want to track another URL instead...
A common cause of non-accessible web pages are elements that were made interactive via JavaScript but cannot be focused...
Event delegation is a pattern where a container element has a single event listener that handles events for all descendants...
Haml 6 was a major rewrite with performance in mind. To achieve a performance improvement of 1.7x, some design...
jQuery has a function $.fn.trigger(). You can use it to dispatch an event on a jQuery object: let $element = $('.foo...