How to load a JavaScript file of a custom module in Magento 2

To load a JavaScript file of a custom module in Magento 2, you have to include an extension’s base javascript file via layout instructions. Continue Reading

To load a JavaScript file of a custom module in Magento 2, you have to include an extension’s base javascript file via layout instructions. Continue Reading

The appearance of package managers entirely changed JavaScript routine processes, since they’ve solved a set of problems and simplified the use of the language. First of all, JavaScript package managers introduced a new reliable approach to third-party software. That’s why you only need to know how a certain tool works instead of learning the algorithm of the installation process, or how the software is built, compiled, and integrates with the system. Besides, you get a dependency management solution with every JavaScript package manager. The software knows the requirements of every package, so it automatically installs all the necessary components in order to satisfy the tree of dependencies. Continue Reading

Below, I shed light on such useful technology as and compare it with the closest competitors. Since here on the Firebear blog we are passionate about Magento 2, I also explain how to configure and adjust RequireJS with the second version of the ecommerce platform. The article itself combines real world coding experience, notes from the official documentation, code snippets, and materials from reliable sources. You will find a complete resource list in the end of this blog post. Continue Reading

Being a boolean attribute, defer specifies that the script is executed after the page parsing. The attribute is aimed at external scripts only (the src attribute should be present). Find more information about defer .
Despite Magento 2 supports standard script deferring, it never uses defer in its core. To change the situation, you can use the following code:
|
1 2 3 4 5 6 7 8 |
<?xml version='1.0'?> <page xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' layout='admin-login' xsi:noNamespaceSchemaLocation='../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd'> <head> <script src='Dfe_Login::main.js' defer='defer'/> </head> </page> |
There are a lot of tools out there to turn learning into a game. The process when game thinking, game mechanics or whole games are used in non-game contexts is called gamification. Nowadays, specialists can gamify almost everything from customers interaction with a website to education. They turn routine processes into fun to improve user engagement, make learning more effective, and provide new unique user experience. As coders always were hardcore gamers, the appearance of gamified coding programs and courses was inevitable. Nowadays, there are dozens of video games which purpose is learning programming. To become a good coder, you just need a right game. Of course, it works better with theoretical courses but in this post we will tell you about games. Continue Reading
Play & Code – Lerne zu programmieren durch Spielen
Es gibt viele Wege das Lernen ins Spiel zu verwandeln. Der Prozess, wenn das Spieldenken, Spielmechanik oder gar ganze Spiele im nicht-Spielkontext eingesetzt werden, nennt man Gamification. Von der Zusammenarbeit an einer Website bis hin zu einer Ausbildung mit spielerischen Elementen versehen – die Experten schaffen es heutzutage überall die Spielifizierung zu implementieren. Sie gestalten Routineprozesse zum Spaß um. Dadurch soll das Lernen effektiver gestaltet werden. Durch eine neuartige Erfahrung entsteht eine verbesserte Beschäftigung des Nutzers. Da die Entwickler oft selbst Hardcore-Gamer waren, ist es kein Wunder das die gamifizierte Programme und Lernmaterial optisch Computerspielen ähneln. Derzeit gibt es eine Menge von Videospielen, deren Ziel programmieren zu lernen ist. Um ein guter Schlüssler zu werden, brauchst Du nur das richtige Spiel. Natürlich, wenn Du Schule durchläufst und theoretischen Stoff erlernst, so ist es ja besser. Aber hier in diesem Artikel wird die Rede um Spiele gehen.

In this post, we’ve gathered all necessary information about MOA – Magento on Angular. Standard Magento can disappoint you because of its crufty Javascript, tangled interface, and heavy SOAP APIs. Magento on Angular or MOA tries to solve these problems. AngularJS, Angular in short, is an open-source web app framework. It is maintained by Google and a wide community. MOA was designed to simplify development and testing by providing a framework for client-side MVC (model–view–controller) architecture along with other components.
PHP is a web development language, which is also used for a general-purpose programming. It is installed on more than 2.1 million web servers and 240 million websites. PHP can be mixed with HTML and used in combination with various frameworks and templating engines. The code itself is usually processed by an interpreter. The PHP interpreter is implemented as a native module of a web server or as a Common Gateway Interface executable (CGI). After the interpretation and execution, the PHP code is sent in a form of resulting output to its client by a web server. Usually, it is a part of the generated web page. PHP code can generate an HTML code of a web page, an image, etc. The canonical PHP interpreter is a free software, which is released under the PHP License. It can be deployed on most web servers and works with almost every operating system. In addition, PHP can be used in standalone graphical applications, because it supports a command-line interface capability. Continue Reading