Web Page and Site Optimization
Ajax Content From Other Domains
Ajax ordinarily can access only the domain of the web page where Ajax is running. But a relay can be provided.
Alternate Language Web Page Redirect
If you provide, or want to provide, web pages written with languages other than the primary language of your site, this article is likely to be of interest.
Anchor Links and Scroll Positions
The position of an anchor link doesn't have to be crowded against the top of the browser window.
Content Always Appears Current
Suppose you had a sentence in your article with the current date. It's no problem. Now. But next year, the article will appear old. Every year after that, it will appear older and older.
You can control the good spiders. Most search engine indexing spiders are good spiders.
Custom Device-Specific Content
Sometimes you want to publish certain content only for a specific device or device type. Mobile Detect PHP software is available to help.
Embedding Dynamic Dates with PHP
Dynamic dates can be used to present an article as relevant, to convey a sense of immediacy, or to dynamically publish a deadline.
Faster Loading Pages With Delayed Content
Load part of the page so the person can see what's available. Load the rest only on demand.
Faster Time-intensive Page Load
Some database work can take a while. If the work needs to be done before a web page can load, as is the case with PHP code, then there may be a problem.
A person gets so used to seeing their web pages, imagining how spiders see them is unfamiliar. Yet, it's prudent a person does know what spiders see.
JavaScript to Detect Mobile Device
When a web page has certain content to be published only on desktop/laptop computers, or only on multimedia devices like smartphones, then there must be a way to detect which is being used. There are ways to do that.
'More Content Available' Link With Fade Out
This is a wonderful way to make content available for those who want it, yet have it out of the way for those who do not.
There is some confusion about the rel="nofollow" link attribute Google introduced some years ago. Following that, the dofollow idea spread further confusion. I'll try to remove some of the confusion in this article.
One Solution for Slow-Loading Pages
JavaScript imported from other domains' slow servers can seriously slow down your page loads. When the browser sees JavaScript to be imported, it pauses the page load at that point in the source code to fetch the JavaScript. This article has a solution.
Present 'Turn JavaScript On' Instructions for Visitors
When JavaScript is turned off, the user can be informed that it must be turned on. To be friendly and elegant about it, the instructions for turning it on can be provided right there on the page.
Required Meta Tag for Mobile-Device Responsive Sites
There's a meta tag that tells robots and SEO spiders your page is responsive to mobile devices.
Search Engine Friendly Site Consolidation
How we move 1600+ web pages, some from one domain to another, and kept the pages indexed in Google.
Search Engine Spider-Friendly JavaScript Content
If you have syndicated content delivered with JavaScript, the content might not be indexed by the search engines. Here is a solution.
Easy-to-implement lightbox for showing off a large image.
Submit Button Published After Required Fields Have Content
For forms that must have certain fields filled in before the form is submitted, a missing submit button can guarantee that. The submit button is published only after each required field has something typed in.
Testing .htaccess Without Killing The Server
The .htaccess file is sensitive to errors. With a sandbox, I can try new things until I get them working - without affecting the rest of the server.
Textarea Field Tips and Tricks
Many things can be done with the form textarea field box. Here are 6.
Text Swapping Without Page Jiggles
A common issue with swapping text within a div is that the page jumps or jiggles. With this technique, the jiggle can be eliminated.
Where to Put JavaScript (and How to Get Faster Page Loads)
Where is the correct location for JavaScript in the source code of a web page? Where you think. And not where you think.
All information in WillMaster Library articles is presented AS-IS.
We only suggest and recommend what we believe is of value. As remuneration for the time and research involved to provide quality links, we generally use affiliate links when we can. Whenever we link to something not our own, you should assume they are affiliate links or that we benefit in some way.