Is there a way to fetch styles that are stored in a json file without using any framework or node npm package?
I've been doing some research and cannot find anything that helps me create a style library for a very limited in resources HMI using pure vanilla JS.
CodePudding user response:
If you want to grab the content of a .json file, you can do it with the native fetch API from node
CodePudding user response:
I hope this link can help you find a solution https://www.geeksforgeeks.org/how-to-fetch-data-from-json-file-and-display-in-html-table-using-jquery/ thanks