<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[INSPIRATIONlabs - Medium]]></title>
        <description><![CDATA[A devstudio&#39;s blog - Medium]]></description>
        <link>https://medium.com/inspirationlabs?source=rss----24046fd3b34d---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>INSPIRATIONlabs - Medium</title>
            <link>https://medium.com/inspirationlabs?source=rss----24046fd3b34d---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 16:36:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/inspirationlabs" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Wie wertorientierte User Experience zu einer messbaren Steigerung des Geschäftserfolgs beiträgt]]></title>
            <link>https://medium.com/inspirationlabs/wie-wertorientierte-user-experience-zu-einer-messbaren-steigerung-des-gesch%C3%A4ftserfolgs-beitr%C3%A4gt-932ea1f07dd7?source=rss----24046fd3b34d---4</link>
            <guid isPermaLink="false">https://medium.com/p/932ea1f07dd7</guid>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[usability]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[ux-design]]></category>
            <category><![CDATA[user-experience-design]]></category>
            <dc:creator><![CDATA[Martin Schaarschmidt]]></dc:creator>
            <pubDate>Mon, 25 Feb 2019 10:57:10 GMT</pubDate>
            <atom:updated>2019-02-25T10:55:29.831Z</atom:updated>
            <content:encoded><![CDATA[<p>Oder: Warum Unternehmer die besseren UX-Designer sind… ;)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eBEizgIr7_4uT2qhJgNQug.jpeg" /><figcaption>Photo by Daniel Cheung on Unsplash</figcaption></figure><p><strong>Dieser Artikel basiert auf dem gleichnamigen Vortrag von Alexander Knapstein @INSPIRATIONlabs im Rahmen der UUX-Roadshow am 06.02.2019 in Ludwigshafen.</strong></p><p>Unternehmertum und positive User Experience gehen Hand in Hand. Zumindest sollten sie das, denn die Erfahrung, die der Nutzer mit der Dienstleistung oder dem Produkt eines Unternehmens macht, hat direkten Einfluss auf den Geschäftserfolg. Positive Erfahrungen können nicht nur zu einer weiteren Nutzung des Produktes führen, sondern User anregen, auch andere Artikel oder Dienste des Unternehmens zu nutzen oder diese weiterzuempfehlen.</p><blockquote>“User experience encompasses all aspects of the end-user’s interaction with the company, its services, and its products.” (<a href="https://www.nngroup.com/articles/definition-user-experience/">Nielsen Norman Group</a>)</blockquote><p>Die Aufgabe von User Experience- und Interaktionsdesignern ist es nun, die Erfahrung der Nutzer mit dem Produkt oder der Dienstleistung möglichst positiv zu gestalten. User Experience Design wird häufig als “Problemlösung” beschrieben, da UX-Design dem User hilft, Probleme zu bewältigen (bzw. diese gar nicht erst entstehen zu lassen). Diese Probleme sind dabei primär funktionaler Natur: “Wie komme ich am schnellsten zu dem Produkt das ich suche?” “Wo kann ich mein Benutzerkonto verwalten?” “Wer kann mir bei Fragen oder Problemen weiterhelfen” und so weiter und so fort.</p><p>Aufgrund der ökonomischen Wichtigkeit darf die User Experience kein exklusives Thema für Designer sein, denn: In der UX schlummert der Erfolg oder Misserfolg eines Produktes / einer Dienstleistung und somit auch das Wohl des Unternehmens!</p><blockquote>Jeder Unternehmer sollte die UX daher bereits von sich aus verinnerlicht haben. Mehr noch: positive UX sollte jedem Stakeholder — vom Analysten über den Designer hin zu Entwickler-, Produkt-, Marketing- und Vertriebsteams ein Anliegen sein. Jeder sollte Funktionalitäten hinterfragen und testen. Jeder sollte aus der Sicht des Kunden denken können. Jeder sollte sein eigener Kunde sein.</blockquote><p>Das ist im Kern ein zutiefst unternehmerischer Ansatz, da es hier im Endeffekt um den Wert geht, den Teams gemeinsam schaffen. Es geht um Fragen wie z.B.: “Warum brauchen wir das Produkt?”, “Wem hilft es?”, “Welchen Nutzen haben die User davon?”, “Wie werden Konversionen erzielt?”, “Wie generiert mein Auftraggeber damit Erlös?”</p><p>Durch die Verinnerlichung dieser Fragen nimmt jedes Team-Mitglied eine unternehmerische Haltung ein und wird “Unternehmer im Kleinen”.</p><p>In der Art wie die Frage der User Experience alle Stakeholder antreiben sollte, ein Produkt zu entwickeln, das die Nutzer begeistert, muss sie sich durch den gesamten Lebenszyklus eines Produktes oder einer Dienstleistung ziehen. UX-Design ist kein singuläres Event sondern ein fortlaufender Prozess. Das mag nun kompliziert klingen, ist aber eine logische Konsequenz des unternehmerischen Alltags, in dem am Markt aktive Organisationen mit Mitbewerbern und (potentiellen) Kunden interagierenden . Die meisten Produkte und Dienstleistung sind daher der ständigen Überprüfung unterworfen. Diese Zyklen können mit klassischen PDCA (Plan-Do-Check-Act) Loops beschrieben oder als agile Prozesse in Sprints definiert werden.</p><p>Damit UX-Design funktioniert, müssen in vielen Fällen die Prozesse, Methoden und Tools entsprechend angepasst sein. Ein gerade bei digitalen Produkten häufig gebrauchtes Wort lautet: <em>agil</em>.</p><p>Doch wie kann das nun in der Praxis funktionieren? Wie können Prozesse agil gestaltet werden? Welche Tools und Methoden braucht es, damit das funktioniert und der UX-Gedanke durch den gesamten Planungs- und Entwicklungsprozess hin zum fertigen Produkt und darüber hinaus (PDCA) getragen werden kann?</p><p>In seinem Vortrag gibt Alexander Knapstein Antworten auf diese Fragen und zeigt anhand verschiedener Praxisbeispiele, wie positive UX erzielt werden kann, um den Erfolg von Unternehmen zu steigern:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F315831471%3Fapp_id%3D122963&amp;dntp=1&amp;url=https%3A%2F%2Fvimeo.com%2F315831471%2F737c5e1678&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F757706623_1280.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="1920" height="1080" frameborder="0" scrolling="no"><a href="https://medium.com/media/d03e0bbc636c36e3ac75603d32c47b9e/href">https://medium.com/media/d03e0bbc636c36e3ac75603d32c47b9e/href</a></iframe><p><em>Originally published at </em><a href="https://inspirationlabs.com/de/blog/wie-wertorientierte-user-experience-zu-einer-messbaren-steigerung-des-gesch%C3%A4ftserfolgs-beitr%C3%A4gt"><em>inspirationlabs.com</em></a></p><ul><li><a href="https://inspirationlabs.com/de/ueber-uns">Über uns | inspirationlabs</a></li><li><a href="https://medium.com/inspirationlabs">INSPIRATIONlabs</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=932ea1f07dd7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/inspirationlabs/wie-wertorientierte-user-experience-zu-einer-messbaren-steigerung-des-gesch%C3%A4ftserfolgs-beitr%C3%A4gt-932ea1f07dd7">Wie wertorientierte User Experience zu einer messbaren Steigerung des Geschäftserfolgs beiträgt</a> was originally published in <a href="https://medium.com/inspirationlabs">INSPIRATIONlabs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Node.js Array processing: getting from 4 seconds to under 100ms]]></title>
            <link>https://medium.com/inspirationlabs/node-js-array-processing-getting-from-4-seconds-to-under-100ms-2d507cd0faf3?source=rss----24046fd3b34d---4</link>
            <guid isPermaLink="false">https://medium.com/p/2d507cd0faf3</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[performance]]></category>
            <dc:creator><![CDATA[Dominic Böttger]]></dc:creator>
            <pubDate>Sun, 13 Jan 2019 16:53:22 GMT</pubDate>
            <atom:updated>2019-01-13T16:53:22.738Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dC8V5Dj6YDVwJTq9" /><figcaption>Photo by <a href="https://unsplash.com/@billjelen?utm_source=medium&amp;utm_medium=referral">Bill Jelen</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Nodejs is very fast when it comes to processing of arrays. If you have a simple array with 100.000 numbers it’s really fast. So everything was fine until I wanted to process a large Array of tree based data and add the data of the sub-elements to the main element. Something which happens quite often if you want to process permissions on a tree-based structure.</p><p>As I knew the performance of the pure array iteration in node.js i never expected that it could take more than 4 seconds to process my little tree (40.000 iterations overall). As i was not happy with the result i created a little cache mechanism for every element already being processed in the tree. This decreased the time to about 2 seconds. But that was still to long.</p><p>I tried using a lot of differen for implementations like _.for and for with a length cache and many more. This did not change a lot. I did not check for duplcates before pushing to the array cause i thought if i add a indexOf it will slow down the process. Actually it increased the performance and a _.inArray was also a bit faster. Afterwards the performance of our nested for construct was at about 700ms…… Then I realized that the size of the array has an major impact on the performance of a array push which I did very excessively in my code.</p><p>The solution was to create empty array instance before every for — loop and push to that instance. After the for — loop I concateinated the new instance with the “global” array. After I did that in every for — loop the needed time decreased to under 100ms.</p><p><em>Originally published at </em><a href="https://inspirationlabs.com/blog/nodejs-array-processing-getting-4-seconds-under-100ms"><em>inspirationlabs.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d507cd0faf3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/inspirationlabs/node-js-array-processing-getting-from-4-seconds-to-under-100ms-2d507cd0faf3">Node.js Array processing: getting from 4 seconds to under 100ms</a> was originally published in <a href="https://medium.com/inspirationlabs">INSPIRATIONlabs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PHVision — “The Science City of the future” as a mixed reality experience for Microsoft HoloLens.]]></title>
            <link>https://medium.com/inspirationlabs/phvision-the-science-city-of-the-future-as-a-mixed-reality-experience-for-microsoft-hololens-1e88cad12e76?source=rss----24046fd3b34d---4</link>
            <guid isPermaLink="false">https://medium.com/p/1e88cad12e76</guid>
            <category><![CDATA[hololens]]></category>
            <category><![CDATA[augmented-reality]]></category>
            <dc:creator><![CDATA[Daniel Walther]]></dc:creator>
            <pubDate>Mon, 13 Aug 2018 10:27:05 GMT</pubDate>
            <atom:updated>2018-08-21T16:47:25.928Z</atom:updated>
            <content:encoded><![CDATA[<p>Patrick Henry Village (PHV) is one of the most exciting conversion and urban development projects of our time: the 100-hectare site near Heidelberg is to be the birthplace of the “Science City of the future”. We have developed the mixed reality experience “PHVision”, with which the vision is brought to life exclusively on the Microsoft HoloLens.</p><p><em>Translated from the </em><a href="https://inspirationlabs.com/de/blog/phvision-%E2%80%93-die-wissensstadt-der-zukunft-als-mixed-reality-experience-f%C3%BCr-microsoft-hololens"><em>original German article</em></a><em> by Martin Schaarschmidt.</em></p><h3>Background: From PHV to PHVision</h3><p>PHV will form a working and living space for up to 15,000 people as an autonomous city quarter. IBA Heidelberg has, together with KCAP, developed the vision of the future for PHV. Here KCAP put their focus on the digital future, new synergies from economy and science, an “multi-mobility” approach, innovative places of education, as well as future-oriented living and working environments to strengthen the identity of the district.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_q9XWv3wUpR9T1MT.png" /></figure><h3>Holograms to replace styrofoam and cardboard.</h3><p>Mixed reality make an ideal platform to visualize architectural and town planning projects and to introduce them to a wider audience. Much like a static model, the HoloLens allows to view holograms placed in the room to be viewed from different angles. Unlike a static model however a viewer can move not only the around the holograms, but through them, too. In addition holograms can be supplied with different functions by applying scripts, providing additional opportunities for interaction. Click gestures or visual focus can be used to start animations and depict additional information, for example. Another plus is the possibility of using existing resources such as 3D object models, ideally without much additional effort, into the mixed reality environment.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F238032352%3Fapp_id%3D122963&amp;dntp=1&amp;url=https%3A%2F%2Fvimeo.com%2F238032352&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F660615236_1280.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="1920" height="1080" frameborder="0" scrolling="no"><a href="https://medium.com/media/5c134618c6c1fe1b02a47273fbefd12d/href">https://medium.com/media/5c134618c6c1fe1b02a47273fbefd12d/href</a></iframe><h3>Visual interaction concept</h3><p>The versatile interaction possibilities of the HoloLens allow the development of applications that can be both low-threshold and highly immersive at the same time, enabling the user to wholly experience the setting. In the case of PHVision, we have developed a visual interaction and navigation concept, which requires only a minimum of assistance. Users are guided intuitively have thusly a more natural experience. By visually focussing defined anchor points for a set duration, additional information is shown, animations are started and unrelated layers are hidden. This way, the overall picture of the vision can be broken up and split into individual components.</p><h3>The PHVision mixed reality experience at the ExpoReal 2017</h3><p>The first big mile- and touchstone of the PHVision mixed reality experience was its public presentation at 2017’s ExpoReal in Munich. The trade fair for real estate &amp; investment is the largest of its kind in Europe. That year it attracted over 40,000 attendees from 75 countries. More than 1200 visitors found their way to the urban innovation forum, at the centre of which the communication of PHVision stood this year. The central element of the communications strategy was the PHVision mixed reality experience we have developed in cooperation with our partner KontextKommunikation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/0*U5d2nqBTwBHzN6TP" /></figure><p>Several hundred visitors were guided through the holographic city quarters of PHVision with help from 6 HoloLenses. The visual navigation concept we designed was then validated by the many users’ psositive experience. Because we assumed a large number of visitors at the booth in advance, we have calculated three minutes per session and user. Due to the still little-known control concept of HoloLens and their for many users unfamiliar gesture control, which usually has to be taught, we have renounced the use of complex gesture and voice control. The success proved us right: less is sometimes more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qZQ9XXcuHZgcd_s0" /></figure><h3>Explorers of undiscovered lands</h3><p>Which parts of PHVision will be realized, which ones discarded? Something big will emerge, that much seems certain. It’s also certain, that there will be changes to the overall vision and not every daring concept or hologram of PHVision will be implemented in the urban planning. Regardless of what will become of the former conversion areas, PHVision did already clearly show us one thing: Our decision to enter mixed reality development whilst relying on the HoloLens was thoroughly confirmed by the project. “The future is an undiscovered country” claims the similairly subtitled sixth Star Trek feature film. With the help of mixed reality part of Star Trek’s forecast becomes reality and it seems as though the HoloLens gave us access to undiscovered lands and/or countries as of today. It’s a look at the future. An obvious board hint in regards to the direction the development of technology, communication and society will take… The answers however are not yet set in stone. Those will be the result of the questions we ask today.</p><h3>What does the future of urbanity look like?</h3><h3>How do we want to work, communicate and live?</h3><h3>What will become of us?</h3><p>We are all invited to co-design those and other questions and their answers. These are exciting times! Let’s go for it! More about Mixed Reality can be found <a href="https://inspirationlabs.com/mixed-reality-mr-development">here</a>!</p><p>You have suggestions / questions or would like to realize a project with us?</p><h3>Contact us!</h3><p>Our Team is available in <strong>Heidelberg</strong> and <strong>Zürich</strong></p><p>Call us at<br>+4962219853680<br>or write an e-mail to<br><a href="/service/mailto:hello@inspirationlabs.com">hello@inspirationlabs.co</a>m</p><h3>Links:</h3><p><a href="https://www.microsofttranslator.com/bv.aspx?from=&amp;to=en&amp;a=http%3A%2F%2Fwww.exporeal.net%2F">http://www.exporeal.net</a><br><a href="https://www.microsofttranslator.com/bv.aspx?from=&amp;to=en&amp;a=http%3A%2F%2Fwww.iba.heidelberg.de%2F">http://www.iba.heidelberg.de</a><br><a href="https://www.microsofttranslator.com/bv.aspx?from=&amp;to=en&amp;a=http%3A%2F%2Fwww.heidelberg.de%2F">http://www.heidelberg.de</a><br><a href="https://www.microsofttranslator.com/bv.aspx?from=&amp;to=en&amp;a=http%3A%2F%2Fkontext-kom.de%2F">http://kontext-kom.de/</a><br><a href="https://www.microsofttranslator.com/bv.aspx?from=&amp;to=en&amp;a=http%3A%2F%2Fwww.kcap.eu%2Fen%2F">http://www.kcap.eu/en/</a></p><h3>Making Of</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F238949088%3Fapp_id%3D122963&amp;dntp=1&amp;url=https%3A%2F%2Fvimeo.com%2F238949088&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F661788041_1280.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="1920" height="1080" frameborder="0" scrolling="no"><a href="https://medium.com/media/0c5fb2e21ab4e92f1f859dfff9271de8/href">https://medium.com/media/0c5fb2e21ab4e92f1f859dfff9271de8/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e88cad12e76" width="1" height="1" alt=""><hr><p><a href="https://medium.com/inspirationlabs/phvision-the-science-city-of-the-future-as-a-mixed-reality-experience-for-microsoft-hololens-1e88cad12e76">PHVision — “The Science City of the future” as a mixed reality experience for Microsoft HoloLens.</a> was originally published in <a href="https://medium.com/inspirationlabs">INSPIRATIONlabs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating websites for search engines with web components ( StencilJS )]]></title>
            <link>https://medium.com/inspirationlabs/creating-websites-for-search-engines-with-web-components-stenciljs-32d2be163394?source=rss----24046fd3b34d---4</link>
            <guid isPermaLink="false">https://medium.com/p/32d2be163394</guid>
            <category><![CDATA[website]]></category>
            <category><![CDATA[stenciljs]]></category>
            <category><![CDATA[seo]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[frontend-development]]></category>
            <dc:creator><![CDATA[Dominic Böttger]]></dc:creator>
            <pubDate>Sat, 23 Jun 2018 15:59:16 GMT</pubDate>
            <atom:updated>2018-06-23T15:59:16.167Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZQV4-rnkJGHdXId1" /><figcaption>“A bright neon on a brick wall in a store” by <a href="https://unsplash.com/@austinchan?utm_source=medium&amp;utm_medium=referral">Austin Chan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Hello. It’s me again. In the <a href="https://medium.com/inspirationlabs/the-path-to-native-web-components-and-how-stenciljs-can-help-you-35a7469d648f">previous post</a> I just dropped a note about how StencilJS and native web components improved our developers work flow for applications. This time I want to tell you more about how StencilJS changed the work flow for the website development within our teams (customer side or in — house).<br> <br>Creating templates for various content management systems was always a pain from a developers perspective. The results were often unstructured or not as clean as the structure could be. There were a lot of includes and preprocessors and so on. The result was often a mix of HTML and ( often PHP ) code.<br> <br>On the other side there is the option to create a single page application in JavaScript which results in a very nice experience for the user, except if it comes to the initial load time. After the application has been loaded the website typically behaves like a local app and the user experience is very good. The two downsides are typically the initial load time and possible problems for search engine crawlers. Even if Google is nowadays able to crawl the website, you get in trouble as soon as a JavaScript error occurs and the Google bot also wants a lot of polyfills to work with a SPA.<br> <br> So what do I want from a developers perspective?</p><p>· I want to have a smooth development work flow</p><p>· I want to have clearly structured code</p><p>· I want to have well documented code</p><p>· I want to be able to reuse parts of my code and templates</p><p>What does want the SEO guy want?</p><p>· <em>He wants to be able to do a right — click in the browser and see the complete rendered output when he clicks on the view — source button</em></p><p>· <em>He wants to be able to modify the header information</em></p><p>· <em>He wants the hreflang tags to be set correctly</em></p><p>· <em>He wants a working internal link structure</em></p><p>· <em>He wants a fast initial load time</em></p><p>· <em>….</em></p><p>In the first collection of the developers needs you see that this does not fit for the most common content management systems and in the SEO guy’s world it will not fit for a SPA.<br> <br>There are several technical solutions to solve this problem if you want to use a component based approach. Typically this can be done with server side rendering or a prerenderer like <a href="http://prerender.io./">http://prerender.io.</a><br> <br>From my personal experience both create complexity and you will always need server side solutions, like redirecting the search engine bots to prerender or create a server application.<br> <br>You often develop two projects and are never able to share components between each other, because the application has been developed in a JS framework and the static pages are rendered by a CMS, especially if you have a website which is a mixture of static pages and application behavior like a booking engine or shop. With StencilJS this has changed for us. We are now able to create the application’s UI elements in StencilJS ( even if the application itself is developed in another framework like angular, react, or vue) and the static website can also be created with web components.<br> <br>A very nice example in my oppinion on how a SPA/MPA mix can work is <a href="https://www.wired.com./">https://www.wired.com.</a> If you visit the website without enabling JS in your browser you are able to see all the contents. If you click an internal link you have a full request and reload of the page. If you enable JavaScript after the initial HTML has been distributed to your browser the SPA starts and if there is a click to an internal link it just loads the data from the server and renders it instead of doing a full reload.<br> <br>This can be done with StencilJS in a very simple way. The Stencil — Starter — Project already includes the prerender functionality needed to create a website with the above SPA/MPA feature. When I tried the starter project I thought I would have to add every page as an entry in the router and I failed. The reason was clear, as the website I tried to render had around 9000 sub — pages and as soon as I visited one of the pages there were all the url’s in the HTML. This was a massive overhead and slowed the page down. My solution was to have only one single route and create a loader which tries to fetch the contents via HTTP request from an API or local JSON files. If a file does not exists it’s just redirecting to the home.<br> <br> So how does this look like? In the app-root I added the following code:</p><pre>&lt;stencil-router&gt;<br> &lt;stencil-route component=’site-loader’&gt;&lt;/stencil-route&gt;<br>&lt;/stencil-router&gt;</pre><p>This means that on every URL the site-loader will be active. If the site-loader imports the MatchResults and adds a property, the component’s update functions will be triggered on every route change.</p><pre>/**<br> This is just a example. Please integrate you own error handling  (404) and document parsing if needed<br> <em>*/<br></em>import { Component, Element } from &#39;@stencil/core&#39;;<br>import { MatchResults } from &#39;@stencil/router&#39;;<br> @Component({<br>   tag: &#39;site-loader&#39;,<br>   styleUrl: &#39;site-loader.scss&#39;<br> })<br> export class SiteLoader {<br> <br>   @Prop() match: MatchResults;<br>   @Prop() data: any;<br>   @Element() el: HTMLElement;</pre><pre>   componentWillLoad() {<br>         return this.fetchContents();<br>   }<br>   <br>   componentWillUpdate() {<br>       return this.fetchContents();<br>   }<br>   <br>   fetchContents() {<br>     const documenturl = document.location.pathname;<br>     const splitres = documenturl.split(&#39;/&#39;);<br>     let lang = &#39;en&#39;;<br>     if(splitres[1].length === 2) {<br>       lang = splitres[1];<br>     }<br>     return fetch(&#39;/contents/&#39;+ documenturl + &#39;/index.json&#39;)<br>     .then(data =&gt; {<br>          return res.json()<br>             .then(json =&gt; {<br>                 this.data = json;<br>             })<br>     })<br>   }<br>   <br>   /<strong>**</strong><br>   here the render function will just append a component for the pagetype (template) and add the data as attributes<br>   <em>*/</em><br>   render() {<br>       const element: any = document.createElement(&#39;pagetype-&#39; + this.data.template);<br>         element.data = this.data;<br>         // clearn content<br>         this.el.innerHTML = &#39;&#39;;<br>         this.el.appendChild(element);<br>         return;<br>   }<br> }</pre><p>After the site-loader is triggered on every URL change, the content will be loaded and the respective pagetype-TYPENAME component will be added to the content. Typically we add the rendering of the HTML header information here in the render function with the Helmet Stencil component.</p><h3>Build and prerender</h3><p>The basic setup of the page has been done, so if we just add one page and create a build with</p><pre>npm run build</pre><p>the Stencil compiler will tell us that its prerendering for / has been done and we will have a index.html in www with the contents from the template and hopefully the contents we have in /contents/index.json and those used in our template.<br> <br>But this is not enough to enable the prerendering of all sites, the link structure needs to be set up. This means we need a menu in our template or just links in our contents.<br> <br> The links need to be wrapped in a stencil-route-link component.</p><pre>&lt;stencil-route-link url=&quot;/about&quot;&gt;<br>     &lt;button&gt;about&lt;/button&gt;<br> &lt;/stencil-route-link&gt;</pre><h3>Conclusion</h3><p>In a StencilJS application it’s possible to prerender whole websites. I did that for sites &gt; 9000 pages and it works pretty well. The only downside I see at the moment is the time for the prerendering, but I think this problem will soon be solved. As @lilpwa told me, the guys from ionic are working on a solution to improve the performance of the rendering. The resulting HTML loads very, very fast and it’s easily crawlable by all search engine bots.</p><p>INSPIRATIONlabs is a studio for digital solutions and consulting located in Heidelberg, Germany. If you are interested in our work, come visit us, be it physically or digitally at <a href="http://www.inspirationlabs.com/">http://www.inspirationlabs.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32d2be163394" width="1" height="1" alt=""><hr><p><a href="https://medium.com/inspirationlabs/creating-websites-for-search-engines-with-web-components-stenciljs-32d2be163394">Creating websites for search engines with web components ( StencilJS )</a> was originally published in <a href="https://medium.com/inspirationlabs">INSPIRATIONlabs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The path to native web components and how StencilJS can help you]]></title>
            <link>https://medium.com/inspirationlabs/the-path-to-native-web-components-and-how-stenciljs-can-help-you-35a7469d648f?source=rss----24046fd3b34d---4</link>
            <guid isPermaLink="false">https://medium.com/p/35a7469d648f</guid>
            <category><![CDATA[stenciljs]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[Dominic Böttger]]></dc:creator>
            <pubDate>Fri, 22 Jun 2018 14:00:19 GMT</pubDate>
            <atom:updated>2018-06-22T14:06:19.898Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MltrOViPJ77oPVcG" /><figcaption>Photo by <a href="https://unsplash.com/@daniel_von_appen?utm_source=medium&amp;utm_medium=referral">Daniel von Appen</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Typically I don’t write a lot about my experience as developer, and if I write something it’s more of a How To than about my personal experience. Today, lying on a sun bed on the Island of Corfu, some memories came to my mind and I decided to share some experiences from the last years in front-end development. <br> <br>For years we used several approaches to get webcomponent — like behavior in different frameworks. I always had my troubles with the different approaches as I saw the frameworks evolving within a minimal time and the downside of that evolution always was the need to adapt the interface components to the new state of the technology. Often it was just minor modifications to the syntax, sometimes it was a complete rewrite.<br> <br>When Polymer released I hoped to be able to solve these problems and to be able to write the interface components independent of the logic. I did that at a time when angular 1 was up to date and polymer was in a minor version. There were a lot of issues regarding attribute binding, browser compatibility and the development in HTML and working with HTML imports broke our work flow on multiple occasions. I will not claim that it was the fault of one of the frameworks, but I realized that their combination does not work well in our team or our frameworks.<br> <br>In our team we then worked with the approaches from the different frameworks and libraries. We did most of the developments in various versions of angular and some with react and the combination of different libraries. For me with react always came with some anxiety about the upgrade process, because I remembered from various JavaScript projects which used a combination of libraries that at some day we always ran into trouble to use up-to-date libraries. I am not sure if this is solvable at all, but to be honest even angular gets problems with upgrades as soon as you use third party libraries in your project ( and you normally do if it’s a larger project ).<br> I did not like jsx/tsx at first as it was, from my perspective, mixing code with template. I was wrong! If you split your components into the right size it’s unbelievable helpful. This fear came from a time where we had large PHP templates and they still scare the hell out of me :-).<br> <br>There isn’t only one solution for the plan. That’s one thing my work as a consultant taught me very quickly. The decision for angular, react or whatever framework was also often driven by the teams and business needs like:</p><ul><li>How much time do we have?</li><li>In which framework / library does the team have more experience?</li><li>Which kind of application do we develop?</li><li>Which kind of components do we already have in our company (or do we already work with a component based approach)?</li><li>and many, many more</li></ul><p>I really like redux and the separation of the logic from the code. Even when it creates some additional challenges and sometimes a higher learning curve for the developer. The approach of the ngrx — team to use Observables for the ngrx side effects (async calls like http requests) is very nice from my perspective. The same approach is now available for the native redux implementation and is called redux-observable. I appreciate that implementation a lot.<br> <br>The decision for one framework always came with the downside to never be able to reuse the developed front end components within another framework. Even at Google not everybody is developing with angular. The reality is that in a lot of companies the front end approaches are very fragmented and in larger companies the different teams often don’t know each other.<br> <br>So am I writing this article to say that everything is bad for a general approach for interface elements? No, I don’t, because there is a great solution.<br> <br>Since about 7 months I am working with StencilJS and also introduced it in several projects. Stencil is a webcomponent compiler. The benefit over writing vanilla JavaScript components for me is that there are well documented rules for using the components. From my perspective it’s also a plus to use Typescript Decorators to decorate the components and reuse the approach from react with the render function in the component. It combines useful elements from angular and react from the coding perspective, simplifies the development of a single component, provides aspects like plug-ins for SCSS and many many more. Even though it offers all this, in the end it creates just native webcomponents which can be understood by all browsers &gt;= IE 11.<br> <br>In the last few months we created a lot of components with StencilJS and in every project the components outperformed the previous JS framework implementations. One of the main benefits from my perspective is that the components can be developed in separate projects and easily integrated into the angular project via HTML tags and the binding works the same way as it does with native HTML components. This loose binding and the separation of the applications logic from the interface in combination with the rendering and updating speed of this native approach makes me confident that we found the right solution for our needs.</p><p>We already have some examples where we used the same stencil components in a stencil website project, an angular application and a PHP based CMS. The benefit for us and the costumer is getting a component library over different solutions and improving development speed. Additionally, from the end-users perspective the applications often feels more responsive and the initial load times improved a lot. Try out StencilJS and tell me about your opinion and your experiences.</p><p>Wishing you all the best from Corfu!</p><p>Dominic</p><p>INSPIRATIONlabs is a studio for digital solutions and consulting located in Heidelberg, Germany. If you are interested in our work, come visit us, be it physically or digitally at <a href="http://www.inspirationlabs.com/">http://www.inspirationlabs.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35a7469d648f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/inspirationlabs/the-path-to-native-web-components-and-how-stenciljs-can-help-you-35a7469d648f">The path to native web components and how StencilJS can help you</a> was originally published in <a href="https://medium.com/inspirationlabs">INSPIRATIONlabs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>