jQuery – Fall back to hosted library if cdn fail

Production applications should not be heavily dependent on CDN activities. Applications should use a fallback resource when the CDN is not available. <script src=”https://cdn.dotmaui.com/libs/jquery/3.4.0/jquery.min.js”></script> <script> window.jQuery || document.write(‘<script src=”/js/jquery.min.js”><\/script>’); </script>

Postgresql, managing ENUM types

List of useful commands for working with ENUM in postgresql. Create an enum: CREATE TYPE languages AS ENUM (‘python’, ‘php’, ‘java’); Adding an element to an enum: ALTER TYPE languages ADD VALUE ‘go’;ALTER TYPE languages…

List of useful commands for npm

At dotmaui.com we use a lot Node.js and therefore npm for package management. We keep a list of the commands we use most often and today we want to share it with you. List npm…

New popular libraries added to our CDN

With a view to increasing the Javascript and CSS libraries offered for free, we have added two popular libraries: Handlebars.js:Handlebars provides the power necessary to let you buildĀ semantic templateseffectively with no frustration. https://handlebarsjs.com/ https://cdn.dotmaui.com/libs/handlebars.js/ bootstrap-select:The…