Comments (4)
What is the value in general, having files named with multiple extensions? For me most of the js.php
are more like php.js
comparing the code size of each language.
from worldopole.
Yeah but your webserver wouldn't execute php.js as php ;) Its basically a PHP file building a js file.
Actually I think it would be a good idea to change the locales loader to return json output so we can just use .js files and Ajax load the returned json and use it inside the js code.
We could cache the generated translation json for a few hours for each user. This would lower server load (locales loader isn't executed with every request anymore) and we wouldn't have these strange .js.php files anymore. And we could switch to on the fly client-side translations easier in the future.
@PoUpA is this actually a valid idea?
from worldopole.
Yup this can be done, but not sure if it will be enough to remove all php.js as I think some use variables also.
locale.loader could be a mix returning the locale as json if called or definining the variables if imported.
Caching is just a matter of setting the correct headers.
from worldopole.
aru.php
can output locale and pokemon json now 👍
I'm replacing all *.js.php
files with *.js
files + caching + ajax locale load.
from worldopole.
Related Issues (20)
- Add nests to heatmap
- Suggestion HOT 1
- empty nest_exclude_pokemon --> SQL error
- Dynamic update of recent mythic spawns on homepage seems to be broken (on mobile?) HOT 4
- Add CP to recents and pokemon page HOT 1
- Add frontend toggles to nests map
- Use proper OOP instead of include_once
- internal error 500 php Restricted access aru.php and etc HOT 5
- Pokemon without IV on livemap(100%) HOT 5
- Document variables.json HOT 5
- Monocle HOT 1
- Gym bug with new API
- map url in raids is hardcoded HOT 4
- Missing gyms will pevent Worldopole page from starting
- [Suggestion] Update 'Up-to-date demos' HOT 2
- Install issue HOT 3
- Live map of the pokedex, failing HOT 2
- Link to gym history does not work when gym name contains accented chars HOT 7
- Rework Worldopole to use OSM
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from worldopole.