https://github.com/j3lte/mendix-script-loader
Load external Javascript files in your Mendix app
https://github.com/j3lte/mendix-script-loader
mendix mendix-client mendix-widget pluggable-widget widget
Last synced: 5 months ago
JSON representation
Load external Javascript files in your Mendix app
- Host: GitHub
- URL: https://github.com/j3lte/mendix-script-loader
- Owner: j3lte
- License: mit
- Created: 2022-09-08T16:45:03.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-29T12:25:07.000Z (almost 3 years ago)
- Last Synced: 2025-01-07T10:11:47.452Z (about 1 year ago)
- Topics: mendix, mendix-client, mendix-widget, pluggable-widget, widget
- Language: TypeScript
- Homepage: https://marketplace.mendix.com/link/component/202430
- Size: 613 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Script Loader

Load scripts in your Mendix page/layout
## Features
- Load javascript files from an external source
- Execute action on load/error
- Execute action when all are loaded
- Load scripts in parallel or sequential order
## Important note
> While you can load external scripts (like we do in out demo), you should be aware that the script might not work, or more importantly: mess with the Mendix runtime in your page.
For example:
- Loading jQuery works fine
- Loading Lodash seems to not work properly. The script loads fine, but when the page tries to load Javascript Actions, it breaks
So, if you have issues with your Mendix application when you are using the Script Loader widget, check if any of the loaded scripts interfere with the app itself.
## Usage
Import the Script Loader widget in your page (or preferably, your layout), set the different options (should be intuitive) and let it run.



## Demo project
[Click here](https://caffcodecontenttestapp-sandbox.mxapps.io/p/script-loader-home)
## Issues, suggestions and feature requests
You can find all the information on [Github](https://github.com/j3lte/mendix-script-loader)
## License
The MIT License (MIT)
Copyright © CaffCode 2022. All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.