how do i call js file from html file?
i tried to call js script from local to html file, but it is not loaded why?
6 Replies
Yeah that isn't going to work. HTML can't import javascript, it will just tell to browser to make a requests to get the javascript file.
This seems more like you want Pages than workers
what do you mean by page?
Cloudflare's website hosting:
https://developers.cloudflare.com/pages/
Cloudflare Docs
Cloudflare Pages documentation · Cloudflare Pages docs
Deploy your Pages project by connecting to your Git provider, uploading prebuilt assets directly to Pages with Direct Upload or using C3 from the command line.
what's the difference with worker
Pages is built to handle websites
ah so it can import the function in html file?