Polymer 1: Prevent attachment of iron / application pages to all pages when loading

I use Polymer 1 app-routewith iron-pages, as in the examples, and starter-kit. I found that all elements are attached to the loading page. This slows down at the start. How can I prevent this?

+4
source share
2 answers

Polymer Staret Kit v2, based on PRPL pattern supports lazy route loading. You can use it importHrefwith the observer when changing the route to the lazy download page for iron-pages. See here for sample code.

+5
source

- , , route .

0

Source: https://habr.com/ru/post/1655034/


All Articles