Initially, Polymer was a small library that redefined custom elements. By letting developers harness the power of web components and specifications, Polymer allowed developers to put together websites with building blocks. The latest version of this tool ditched HTML imports in favor of ES modules to achieve the same objective. Build feature rich progressive web applications with Starter template and starter kit or create material web components that works anywhere on the web with Polymer.
Web components provide you a solution to this problem. Written in native web technologies, these self contained web components has the capability to expose values and behaviors based on attributes, just like any other HTML element. These web components come in three different specifications.
Shadow DOM plays an important role in separating style and other logic from one another so they don’t negatively impact other components. HTML template focus on visual aspects of components while the custom elements acts as an agent that holds everything together.
Last but certainly not least is angular. Whether it is interface updates or data handling, Angular is a comprehensive framework that covers every facet of application. If file sizes is your priority then angular might not be a good option as it creates files with higher file sizes. On the other hand, if performance is what you are looking for then, there is no better framework than Angular. The performance and reliability advantage Angular offers makes it stand out from the crowd. Latest version focuses on removing unnecessary code, which will reduce the file size.